-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Raluca Groza <[email protected]>
- Loading branch information
Showing
2 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
yum -y install yum-utils gcc | ||
yum config-manager --set-enabled powertools | ||
|
||
cd /opt | ||
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz | ||
tar xzf Python-3.5.1.tgz | ||
cd Python-3.5.1 | ||
./configure | ||
make altinstall | ||
cd /ci | ||
|
||
yum -y install epel-release bzip2 gzip | ||
|
||
yum localinstall -y /ci/build/*.rpm | ||
|
||
python3.5 -m pip install pylibiio --no-binary :all: | ||
|
||
# Build project | ||
sudo ln -fs /usr/bin/python3.5 /usr/bin/python | ||
python3.5 -m ensurepip | ||
mkdir -p build | ||
cd build | ||
cmake -DPYTHON_BINDINGS=ON -DENABLE_PACKAGING=ON .. | ||
sudo make && sudo make package && make test | ||
sudo make install | ||
ldconfig | ||
cd .. | ||
cd bindings/python | ||
pip install -r requirements_dev.txt | ||
export LD_LIBRARY_PATH=/usr/local/lib/ | ||
python3.5 -m pip install pytest | ||
python3.5 -m pytest -vs --skip-scan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters