Commit 8cc1be30 authored by VIGNET Pierre's avatar VIGNET Pierre

DONT REMOVE mandatory flags for gcc in Fedora => removing -D_FORTIFY_SOURCE=2...

DONT REMOVE mandatory flags for gcc in Fedora => removing -D_FORTIFY_SOURCE=2 causes gcc to.. block (sic); cleaner setup.py
parent 8881f154
......@@ -35,7 +35,7 @@ from distutils import sysconfig
from setuptools import setup, Extension, find_packages
from setuptools.command.test import test as TestCommand
__PACKAGE_VERSION__ = "0.1.3"
__PACKAGE_VERSION__ = "0.1.4"
__LIBRARY_VERSION__ = "0.1.0"
################################################################################
......@@ -64,8 +64,7 @@ class PyTest(TestCommand):
# through what you have to do to make that happen.
d = sysconfig.get_config_vars()
for k, v in d.items():
for unwanted in ('-Wstrict-prototypes', '-DNDEBUG', ' -g ',
'-O2', '-D_FORTIFY_SOURCE=2', '-fstack-protector-strong'):
for unwanted in (' -g ', '-O2'):
if str(v).find(unwanted) != -1:
v = d[k] = str(v).replace(unwanted, ' ')
......@@ -83,12 +82,9 @@ modules = [
"-march=native",
"-mtune=native",
"-Ofast",
#"-O3",
#"-Wall",
#"-g", # Not define NDEBUG macro => Debug build
"-DNDEBUG", # Force release build
#"-DBOOST_TEST_DYN_LINK",
#"-DUSE_ZLIB",
"-std=c11",
"-Wno-unused-variable",
"-Wno-unused-but-set-variable",
......@@ -96,7 +92,7 @@ modules = [
# and multiplication wraps around using twos-complement
# representation
"-fwrapv",
#BOF protect (use both)
# BOF protect (use both)
#"-D_FORTIFY_SOURCE=2",
#"-fstack-protector-strong",
"-pthread",
......@@ -137,7 +133,7 @@ setup(
ext_modules=modules,
description="Cadbiom library",
long_description=open('README.md').read(),
install_requires=["networkx<2", "lxml", "pycryptosat"],
install_requires=["networkx<2", "lxml", "pycryptosat>0.1.3"],
# Tests
tests_require=['pytest'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment