Skip to content
Snippets Groups Projects
Commit d342691f authored by David Hendriks's avatar David Hendriks
Browse files

updated setup

parent f8b30d7d
No related branches found
No related tags found
No related merge requests found
...@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment