File tree 2 files changed +9
-16
lines changed
2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -40,19 +40,25 @@ pyenv_build_test_bundle() {
40
40
source /tmp/.venv/${CURRENT_PYENV} /bin/activate
41
41
set -x
42
42
make clean
43
- python --version
44
43
pip install -q -r requirements_dev.txt
45
44
python setup.py clean
46
45
python setup.py build_ext
47
46
if [ -z ${WHEELPLATFORM+x} ]; then
48
47
python setup.py bdist_wheel
49
48
else
50
- python setup.py bdist_wheel # --plat-name="$WHEELPLATFORM"
49
+ python setup.py bdist_wheel --plat-name=" $WHEELPLATFORM "
51
50
fi
52
51
cp dist/* .whl wheelhouse
52
+ python setup.py develop
53
+ make clean-pyc
54
+ trust_pypi_example 13
55
+ make clean-pyc
56
+ py.test -vvv tests
57
+ make clean-pyc
53
58
python setup.py test
59
+ make clean-pyc
54
60
python setup.py check
55
- python setup.py develop
61
+
56
62
set +x
57
63
deactivate
58
64
set -x
Original file line number Diff line number Diff line change 11
11
print (subprocess .check_output (["pip" , "install" , "setuptools_rust" ]))
12
12
from setuptools_rust import RustExtension
13
13
14
-
15
- # Wheel thinks we are building a pure python wheel since we use cross for compilation
16
- # instead of wheel
17
- # http://stackoverflow.com/questions/35112511/pip-setup-py-bdist-wheel-no-longer-builds-forced-non-pure-wheels
18
- # Tested with wheel v0.29.0
19
- # may fail with different version of wheel
20
- # class BinaryDistribution(Distribution):
21
- # """Distribution which always forces a binary package with platform name"""
22
- # def has_ext_modules(foo):
23
- # return True
24
-
25
-
26
14
with open ('README.rst' ) as readme_file :
27
15
readme = readme_file .read ()
28
16
41
29
]
42
30
43
31
setup (
44
- # distclass=BinaryDistribution,
45
32
name = 'trust_pypi_example' ,
46
33
version = '0.1.0' ,
47
34
description = "Python Boilerplate contains all the boilerplate you need to create a Python wheel with Rust." ,
You can’t perform that action at this time.
0 commit comments