mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-25 04:26:28 +00:00
setup.py: Update for travis-ci.
This commit is contained in:
parent
0a5897aeaa
commit
f8eaafc53f
7
setup.py
7
setup.py
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import print_function
|
||||||
import glob
|
import glob
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import distutils.log as log
|
import distutils.log as log
|
||||||
@ -97,7 +97,8 @@ except KeyError:
|
|||||||
|
|
||||||
if dynamic_sepol is None:
|
if dynamic_sepol is None:
|
||||||
print('Unable to find a libsepol.so on your system!')
|
print('Unable to find a libsepol.so on your system!')
|
||||||
print('Please set the SEPOL environment variable. Exiting.')
|
print("Looked in the following directories:\n{}".format("\n".join(base_lib_dirs)))
|
||||||
|
print('Please set the SEPOL or SEPOL_SRC environment variables. Exiting.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
static_sepol = dynamic_sepol.replace(".so", ".a")
|
static_sepol = dynamic_sepol.replace(".so", ".a")
|
||||||
@ -149,7 +150,7 @@ ext_py_mods = [Extension('setools.policyrep._qpol',
|
|||||||
'-Waggregate-return',
|
'-Waggregate-return',
|
||||||
'-Wfloat-equal',
|
'-Wfloat-equal',
|
||||||
'-Wformat', '-Wformat=2',
|
'-Wformat', '-Wformat=2',
|
||||||
'-Winit-self', '-Winline',
|
'-Winit-self',
|
||||||
'-Wmissing-format-attribute',
|
'-Wmissing-format-attribute',
|
||||||
'-Wmissing-include-dirs',
|
'-Wmissing-include-dirs',
|
||||||
'-Wnested-externs',
|
'-Wnested-externs',
|
||||||
|
Loading…
Reference in New Issue
Block a user