Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
24185e81
Commit
24185e81
authored
6 years ago
by
Isuru Fernando
Browse files
Options
Downloads
Patches
Plain Diff
Build deps in a different path than /io and no-deps
parent
61cce39d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
travis/build-wheels.sh
+10
-11
10 additions, 11 deletions
travis/build-wheels.sh
with
10 additions
and
11 deletions
travis/build-wheels.sh
+
10
−
11
View file @
24185e81
#!/bin/bash
set
-e
-x
cd
/io
mkdir
-p
deps
cd
deps
mkdir
-p
/deps
cd
/deps
yum
install
-y
git
cmake yum wget
wget
http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar
-x
v
f
ruby-2.1.2.tar.gz
yum
install
-y
git
yum
curl
-L
-O
http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar
-xf
ruby-2.1.2.tar.gz
cd
ruby-2.1.2
./configure
make
-j4
...
...
@@ -17,15 +16,14 @@ rm -rf ruby-2.1.2
git clone
--branch
v2.2.12 https://github.com/OCL-dev/ocl-icd
cd
ocl-icd
wget
https://raw.githubusercontent.com/conda-forge/ocl-icd-feedstock/master/recipe/install-headers.patch
--no-check-certificate
curl
-L
-O
https://raw.githubusercontent.com/conda-forge/ocl-icd-feedstock/master/recipe/install-headers.patch
git apply install-headers.patch
autoreconf
-i
chmod
+x configure
./configure
--prefix
=
/usr
make
-j4
make
install
cd
/io
cd
..
# Compile wheels
for
PYBIN
in
/opt/python/
*
/bin
;
do
...
...
@@ -40,7 +38,7 @@ for PYBIN in /opt/python/*/bin; do
fi
# Build with the oldest numpy available to be compatible with newer ones
"
${
PYBIN
}
/pip"
install
"numpy==
${
NUMPY_VERSION
}
"
pybind11 mako
"
${
PYBIN
}
/pip"
wheel /io/
-w
wheelhouse/
"
${
PYBIN
}
/pip"
wheel /io/
-w
wheelhouse/
--no-deps
done
# Bundle external shared libraries into the wheels
...
...
@@ -49,8 +47,9 @@ for whl in wheelhouse/pyopencl*.whl; do
done
# Bundle license files
/opt/python/cp37-cp37m/bin/pip
install
delocate
/opt/python/cp37-cp37m/bin/python /io/travis/fix-wheel.py
/io
/deps/ocl-icd/COPYING
/opt/python/cp37-cp37m/bin/python /io/travis/fix-wheel.py /deps/ocl-icd/COPYING
/opt/python/cp37-cp37m/bin/pip
install
twine
for
WHEEL
in
/io/wheelhouse/pyopencl
*
.whl
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment