mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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
|
# Run the build
|
||||||
echo Building wheel...
|
echo Building wheel...
|
||||||
cd pip-build
|
cd pip-build
|
||||||
python ../pkg/pip/setup_pip.py bdist_wheel
|
python ../pkg/pip/setup_pip.py bdist_wheel --universal
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
# Get the build
|
# Get the build
|
||||||
|
@ -24,6 +24,12 @@ with open(req_file) as reqf:
|
|||||||
else:
|
else:
|
||||||
required = reqf.read().decode("utf-8").splitlines()
|
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
|
# Get the app version
|
||||||
modl = imp.load_source('APP_VERSION', '../web/config.py')
|
modl = imp.load_source('APP_VERSION', '../web/config.py')
|
||||||
|
|
||||||
@ -70,7 +76,11 @@ setup(
|
|||||||
|
|
||||||
install_requires=required,
|
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
|
# Specify date files to be included. For Python 2.6 need to include them in MANIFEST.in
|
||||||
##package_data="",
|
##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
|
Babel==1.3
|
||||||
beautifulsoup4==4.4.1
|
beautifulsoup4==4.4.1
|
||||||
blinker==1.3
|
blinker==1.3
|
||||||
|
Loading…
Reference in New Issue
Block a user