Skip to content

Commit c607a9e

Browse files
committed
try and fix mac segfault
1 parent e073225 commit c607a9e

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

ci/script.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,25 @@ pyenv_build_test_bundle() {
4040
source /tmp/.venv/${CURRENT_PYENV}/bin/activate
4141
set -x
4242
make clean
43-
python --version
4443
pip install -q -r requirements_dev.txt
4544
python setup.py clean
4645
python setup.py build_ext
4746
if [ -z ${WHEELPLATFORM+x} ]; then
4847
python setup.py bdist_wheel
4948
else
50-
python setup.py bdist_wheel #--plat-name="$WHEELPLATFORM"
49+
python setup.py bdist_wheel --plat-name="$WHEELPLATFORM"
5150
fi
5251
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
5358
python setup.py test
59+
make clean-pyc
5460
python setup.py check
55-
python setup.py develop
61+
5662
set +x
5763
deactivate
5864
set -x

setup.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@
1111
print(subprocess.check_output(["pip", "install", "setuptools_rust"]))
1212
from setuptools_rust import RustExtension
1313

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-
2614
with open('README.rst') as readme_file:
2715
readme = readme_file.read()
2816

@@ -41,7 +29,6 @@
4129
]
4230

4331
setup(
44-
# distclass=BinaryDistribution,
4532
name='trust_pypi_example',
4633
version='0.1.0',
4734
description="Python Boilerplate contains all the boilerplate you need to create a Python wheel with Rust.",

0 commit comments

Comments
 (0)