@@ -19,21 +19,49 @@ rm -rf dist/ build/
1919# backup dev manifests
2020cp MANIFEST.in MANIFEST.in.dev
2121
22+ # backup thirdparty
23+ cp -r thirdparty thirdparty_dev
24+ rm -rf thirdparty
25+
2226# install release manifests
2327cp etc/release/MANIFEST.in.release MANIFEST.in
2428
25- ./configure --clean
29+ python_version=` python -c " import sys;t='py{v[0]}{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)" ; `
30+
31+ # download all dependencies as per OS/arch/python
32+ python3 etc/scripts/deps_download.py --find-links https://github.com/Abhishek-Dev09/thirdparty/releases/tag/v2.0 --requirement etc/conf/requirements-" $python_version " _all.txt --dest thirdparty
33+
34+ if [ " $( uname -s) " == " Darwin" ]; then
35+ platform=" mac"
36+ elif [ " $( uname -s) " == " Linux" ]; then
37+ platform=" linux"
38+ elif [ " $( uname -s) " == " MINGW32_NT" ]; then
39+ platform=" win32"
40+ elif [ " $( uname -s) " == " MINGW64_NT" ]; then
41+ platform=" win64"
42+ fi
43+
44+ # create requirements files as per OS/arch/python
45+ python3 etc/scripts/freeze_and_update_reqs.py --find-links thirdparty --requirement etc/conf/requirement-" $python_version " _" $platform " .txt
46+
47+ # copy virtual env files
48+ cp thirdparty_dev/{virtualenv.pyz,virtualenv.pyz.ABOUT} thirdparty
49+
50+ PYTHON_EXE=python3 ./configure --clean
2651export CONFIGURE_QUIET=1
27- ./configure etc/conf
52+ PYTHON_EXE=python3 ./configure etc/conf
2853
2954echo " RELEASE: Building release archives..."
3055
3156# build a zip and tar.bz2
32- bin/python setup.py --quiet --use-default-version clean --all sdist --formats=bztar,zip bdist_wheel
57+ bin/python setup.py --quiet --use-default-version clean --all sdist --formats=bztar,zip bdist_wheel --plat-name " $platform " --python-tag " $python_version "
3358
3459# restore dev manifests
3560mv MANIFEST.in.dev MANIFEST.in
3661
62+ # restore thirdparty
63+ rm -rf thirdparty
64+ mv thirdparty_dev thirdparty
3765
3866function test_scan {
3967 # run a test scan for a given archive
0 commit comments