Remove unnecessary arguments for build_ext command in setup.py

parent 62a493f2
......@@ -129,9 +129,9 @@ clone_script:
build_script:
# Build the compiled extension
- "%CMD_IN_ENV% python setup.py build --enable-cuckoo
--library-directories=\"../jansson-%JANSSON_VERSION%/build/lib/Release;c:/OpenSSL-Win%PYTHON_ARCH%/lib\"
--include-directories=\"../jansson-%JANSSON_VERSION%/build/include;c:/OpenSSL-Win%PYTHON_ARCH%/include\""
- "%CMD_IN_ENV% python setup.py build_ext --enable-cuckoo
-L../jansson-%JANSSON_VERSION%/build/lib/Release:c:/OpenSSL-Win%PYTHON_ARCH%/lib
-I../jansson-%JANSSON_VERSION%/build/include;c:/OpenSSL-Win%PYTHON_ARCH%/include"
test_script:
# Run the project tests
......
......@@ -35,9 +35,7 @@ OPTIONS = [
('dynamic-linking', None, 'link dynamically against libyara'),
('enable-cuckoo', None, 'enable "cuckoo" module'),
('enable-magic', None, 'enable "magic" module'),
('enable-profiling', None, 'enable profiling features'),
('library-directories=', None, 'additional library directories separated by semicolons'),
('include-directories=', None, 'additional include directories separated by semicolons')]
('enable-profiling', None, 'enable profiling features')]
BOOLEAN_OPTIONS = [
......@@ -96,8 +94,6 @@ class BuildCommand(build):
self.enable_magic = None
self.enable_cuckoo = None
self.enable_profiling = None
self.library_directories = None
self.include_directories = None
def finalize_options(self):
......@@ -117,8 +113,6 @@ class BuildExtCommand(build_ext):
self.enable_magic = None
self.enable_cuckoo = None
self.enable_profiling = None
self.library_directories = None
self.include_directories = None
def finalize_options(self):
......@@ -131,9 +125,7 @@ class BuildExtCommand(build_ext):
('dynamic_linking', 'dynamic_linking'),
('enable_magic', 'enable_magic'),
('enable_cuckoo', 'enable_cuckoo'),
('enable_profiling', 'enable_profiling'),
('library_directories', 'library_directories'),
('include_directories', 'include_directories'))
('enable_profiling', 'enable_profiling'))
if self.enable_magic and self.dynamic_linking:
raise distutils.errors.DistutilsOptionError(
......@@ -153,12 +145,6 @@ class BuildExtCommand(build_ext):
exclusions = []
if self.library_directories:
module.library_dirs.extend(self.library_directories.split(';'))
if self.include_directories:
module.include_dirs.extend(self.include_directories.split(';'))
if self.plat_name in ('win32','win-amd64'):
building_for_windows = True
#bits = '64' if self.plat_name == 'win-amd64' else '32'
......
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