Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 52f4b91

Browse files
committed
fixes from review, cleanups, improve README
1 parent c9ab82e commit 52f4b91

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ env:
55
- BUILD_COMMIT=e94cec800304a6a467cf90ce4e7d3e207770b4b4
66
- BUILD_DEPENDS=cython
77
- TEST_DEPENDS="pytest hypothesis"
8-
- PLAT=x86_64
9-
- UNICODE_WIDTH=32
108
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
119
# Following generated with
1210
# travis encrypt -r MacPython/numpy-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
@@ -17,7 +15,6 @@ env:
1715
- EXTRA_ARGV="'--disable-pytest-warnings'"
1816

1917
language: python
20-
python: 3.7
2118
dist: bionic
2219
services: docker
2320
os: linux
@@ -28,6 +25,7 @@ jobs:
2825
env:
2926
- MB_PYTHON_VERSION=3.6
3027
- MB_ML_VER=2010
28+
- PLAT=x86_64
3129
- os: linux
3230
env:
3331
- MB_PYTHON_VERSION=3.6
@@ -39,6 +37,7 @@ jobs:
3937
env:
4038
- MB_PYTHON_VERSION=3.7
4139
- MB_ML_VER=2010
40+
- PLAT=x86_64
4241
- os: linux
4342
env:
4443
- MB_PYTHON_VERSION=3.7
@@ -50,6 +49,7 @@ jobs:
5049
env:
5150
- MB_PYTHON_VERSION=3.8
5251
- MB_ML_VER=2010
52+
- PLAT=x86_64
5353
- os: linux
5454
env:
5555
- MB_PYTHON_VERSION=3.8

README.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ How it works
1919

2020
The wheel-building repository:
2121

22-
* does a fresh build of any required C / C++ libraries;
23-
* builds a numpy wheel, linking against these fresh builds;
22+
* checks out either a known version of NumPy or master's HEAD
23+
* downloads OpenBLAS using numpy/tools/openblas_support.py
24+
* builds a numpy wheel, linking against the downloaded library and using
25+
the appropriate additional variables from `env_vars.sh` or `env_vars32.sh`
2426
* processes the wheel using delocate_ (OSX) or auditwheel_ ``repair``
25-
(Manylinux1_). ``delocate`` and ``auditwheel`` copy the required dynamic
27+
(manylinux_). ``delocate`` and ``auditwheel`` copy the required dynamic
2628
libraries into the wheel and relinks the extension modules against the
2729
copied libraries;
2830
* uploads the built wheels to http://wheels.scipy.org (a Rackspace container
2931
kindly donated by Rackspace to scikit-learn).
3032

3133
The resulting wheels are therefore self-contained and do not need any external
3234
dynamic libraries apart from those provided as standard by OSX / Linux as
33-
defined by the manylinux1 standard.
35+
defined by the manylinux standard.
3436

3537
The ``.travis.yml`` file in this repository has a line containing the API key
3638
for the Rackspace container encrypted with an RSA key that is unique to the
@@ -132,7 +134,7 @@ upload them to PyPI.
132134

133135
Of course, you will need permissions to upload to PyPI, for this to work.
134136

135-
.. _manylinux1: https://www.python.org/dev/peps/pep-0513
137+
.. _manylinux: https://www.python.org/dev/peps/pep-0513
136138
.. _twine: https://pypi.python.org/pypi/twine
137139
.. _bs4: https://pypi.python.org/pypi/beautifulsoup4
138140
.. _delocate: https://pypi.python.org/pypi/delocate

config.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ function build_wheel {
1717
}
1818

1919
function build_libs {
20-
# Use the same incantation as numpy/tools/travis-before-install.sh
20+
# Use the same incantation as numpy/tools/travis-before-install.sh to
21+
# download and un-tar the openblas libraries. The python call returns
22+
# the un-tar root directory, then the files are copied into /usr/local.
23+
# Could utilize a site.cfg instead to prevent the copy.
2124
python -mpip install urllib3
22-
target=$(python numpy/tools/openblas_support.py)
23-
$use_sudo cp -r $target/lib/* /usr/local/lib
24-
$use_sudo cp $target/include/* /usr/local/include
25+
basedir=$(python numpy/tools/openblas_support.py)
26+
$use_sudo cp -r $basedir/lib/* /usr/local/lib
27+
$use_sudo cp $basedir/include/* /usr/local/include
2528
}
2629

2730
function get_test_cmd {

env_vars_32.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Environment variables for build
1+
# Environment variables for 32-bit build.
2+
# The important difference from the 64-bit build is `-msse2` to
3+
# compile sse loops for ufuncs.
24
OPENBLAS_VERSION="v0.3.7"
35
MACOSX_DEPLOYMENT_TARGET=10.9
46
CFLAGS="-msse2 -std=c99 -fno-strict-aliasing"

0 commit comments

Comments
 (0)