mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-23 23:13:38 -06:00
Build a universal Python wheel instead of per-python-version ones. Fixes #2210
This commit is contained in:
parent
631ddff485
commit
074f7a805e
@ -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
|
||||
|
@ -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="",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user