Build a universal Python wheel instead of per-python-version ones. Fixes #2210

This commit is contained in:
Dave Page 2017-02-26 10:01:23 +00:00
parent 631ddff485
commit 074f7a805e
3 changed files with 15 additions and 2 deletions

View File

@ -93,7 +93,7 @@ echo recursive-include pgadmin4 \* > pip-build/MANIFEST.in
# Run the build
echo Building wheel...
cd pip-build
python ../pkg/pip/setup_pip.py bdist_wheel
python ../pkg/pip/setup_pip.py bdist_wheel --universal
cd ../
# Get the build

View File

@ -24,6 +24,12 @@ with open(req_file) as reqf:
else:
required = reqf.read().decode("utf-8").splitlines()
# Remove any requirements with environment specifiers. These
# must be explicitly listed in extras_require below.
for req in required:
if ";" in req:
required.remove(req)
# Get the app version
modl = imp.load_source('APP_VERSION', '../web/config.py')
@ -70,7 +76,11 @@ setup(
install_requires=required,
##extras_require=,
extras_require={
# ...
":python_version<'2.7'": ["ordereddict"],
":python_version<='2.7'": ["importlib"],
},
# Specify date files to be included. For Python 2.6 need to include them in MANIFEST.in
##package_data="",

View File

@ -1,3 +1,6 @@
# NOTE: Any requirements with environment specifiers must be explicitly added
# to pkg/pip/setup_pip.py (in extras_require), otherwise they will be
# ignored when building a PIP Wheel.
Babel==1.3
beautifulsoup4==4.4.1
blinker==1.3