chg: improved setup bug workaround

pull/4118/head
iwitz 2019-02-06 15:58:04 +01:00 committed by GitHub
parent dd2e6cc715
commit 39e7dbc296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -506,13 +506,14 @@ scl enable devtoolset-7 rh-python36 'bash -c "cmake3 \
.."'
make -j3
cd api/python
# before you run setup.py it may be a good idea to switch off your Internet connection ; otherwise pip will try to fetch lief from Github which may cause issues later
scl enable rh-python36 'python3 setup.py install || :'
# when running setup.py, pip will download and install remote LIEF packages that will prevent MISP from detecting the packages that you compiled ; remove them
find /opt/rh/rh-python36/root/ -name "*lief*" -exec rm -rf {} \;
```
## 11.04/ Test lief installation, if no error, package installed
```bash
python
scl enable rh-python36 python3
>> import lief
```