Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
d342691f
Commit
d342691f
authored
5 years ago
by
David Hendriks
Browse files
Options
Downloads
Patches
Plain Diff
updated setup
parent
f8b30d7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+20
-11
20 additions, 11 deletions
setup.py
with
20 additions
and
11 deletions
setup.py
+
20
−
11
View file @
d342691f
...
@@ -7,6 +7,12 @@ import subprocess
...
@@ -7,6 +7,12 @@ import subprocess
import
re
import
re
import
sys
import
sys
# TODO: make this clean
GSL_DIR
=
os
.
getenv
(
'
GSL_DIR
'
,
None
)
if
not
GSL_DIR
:
print
(
"
Warning: GSL_DIR is not set, this might lead to errors along the installation if there is no other version of GSL in the include dirs
"
)
# TODO: write code to know exact parent directory of this file.
# TODO: write code to know exact parent directory of this file.
CWD
=
os
.
getcwd
()
CWD
=
os
.
getcwd
()
...
@@ -58,15 +64,17 @@ API_h = os.environ["BINARY_C"] + "/src/API/binary_c_API.h"
...
@@ -58,15 +64,17 @@ API_h = os.environ["BINARY_C"] + "/src/API/binary_c_API.h"
binary_c_define_macros
.
extend
([(
"
BINARY_C_API_H
"
,
API_h
)])
binary_c_define_macros
.
extend
([(
"
BINARY_C_API_H
"
,
API_h
)])
print
(
'
\n
'
)
print
(
"
binary_c_config
"
,
binary_c_config
)
# TODO: move the creeation of all the include stuff to here so its easier to print everything
print
(
"
incdirs:
"
,
binary_c_incdirs
)
# print('\n')
print
(
"
binary_c_libdirs:
"
,
binary_c_libdirs
)
# print("binary_c_config", binary_c_config)
print
(
"
binary_c_cflags:
"
,
binary_c_cflags
)
# print("incdirs:",binary_c_incdirs)
print
(
"
binary_c_libs:
"
,
binary_c_libs
)
# print("binary_c_libdirs: ", binary_c_libdirs)
print
(
"
API_h:
"
,
API_h
)
# print("binary_c_cflags: ",binary_c_cflags)
print
(
"
macros:
"
,
binary_c_define_macros
)
# print("binary_c_libs: ",binary_c_libs)
print
(
'
\n
'
)
# print("API_h:",API_h)
# print("macros:",binary_c_define_macros)
# print('\n')
...
@@ -85,9 +93,10 @@ binary_c_python_api_module = Extension(
...
@@ -85,9 +93,10 @@ binary_c_python_api_module = Extension(
include_dirs
=
[
include_dirs
=
[
os
.
environ
[
"
BINARY_C
"
]
+
"
/src
"
,
os
.
environ
[
"
BINARY_C
"
]
+
"
/src
"
,
os
.
environ
[
"
BINARY_C
"
]
+
"
/src/API
"
,
os
.
environ
[
"
BINARY_C
"
]
+
"
/src/API
"
,
"
include
"
,
"
include
"
,
]
]
+
binary_c_incdirs
,
+
binary_c_incdirs
+
[
GSL_DIR
]
if
GSL_DIR
else
[],
libraries
=
[
"
binary_c
"
]
+
binary_c_libs
+
[
"
binary_c_api
"
],
libraries
=
[
"
binary_c
"
]
+
binary_c_libs
+
[
"
binary_c_api
"
],
library_dirs
=
[
library_dirs
=
[
os
.
environ
[
"
BINARY_C
"
]
+
"
/src
"
,
os
.
environ
[
"
BINARY_C
"
]
+
"
/src
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment