Don't build .exe packages anymore

This commit is contained in:
Daniele Varrazzo 2021-06-30 14:52:27 +01:00
parent 47b93efcf8
commit 39f12bbfc5
3 changed files with 1 additions and 12 deletions

View File

@ -81,8 +81,6 @@ test_script:
artifacts:
- path: dist\psycopg2-*\*.whl
name: wheel
- path: dist\psycopg2-*\*.exe
name: exe
# vim: set ts=4 sts=4 sw=4:

View File

@ -54,11 +54,6 @@ How to make a psycopg2 release
``scripts/build`` directory. They will be saved in a
``packages/psycopg2-${VERSION}`` directory.
- Remove the ``.exe`` from the dir, because we don't want to upload them on
PyPI::
$ rm -v packages/psycopg2-${VERSION}/*.exe
- Only for stable packages: upload the signed packages on PyPI::
$ twine upload -s packages/psycopg2-${VERSION}/*

View File

@ -321,15 +321,11 @@ def patch_package_name():
def build_binary_packages():
"""Create wheel/exe binary packages."""
"""Create wheel binary packages."""
os.chdir(opt.package_dir)
add_pg_config_path()
# Build .exe packages for whom still use them
if opt.package_name == 'psycopg2':
run_python(['setup.py', 'bdist_wininst', "-d", opt.dist_dir])
# Build .whl packages
run_python(['setup.py', 'bdist_wheel', "-d", opt.dist_dir])