Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
2c8b6d50
Commit
2c8b6d50
authored
May 18, 2017
by
Victor Manuel Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary arguments for build_ext command in setup.py
parent
62a493f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
appveyor.yml
appveyor.yml
+3
-3
setup.py
setup.py
+2
-16
No files found.
appveyor.yml
View file @
2c8b6d50
...
...
@@ -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
...
...
setup.py
View file @
2c8b6d50
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment