Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
47c5e711
Commit
47c5e711
authored
6 years ago
by
Sergey Yakubov
Browse files
Options
Downloads
Patches
Plain Diff
add numpy include dirs
parent
65f9cb31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
worker/api/python/CMakeLists.txt
+1
-0
1 addition, 0 deletions
worker/api/python/CMakeLists.txt
worker/api/python/dist/setup.py.in
+2
-1
2 additions, 1 deletion
worker/api/python/dist/setup.py.in
worker/api/python/setup.py.in
+4
-2
4 additions, 2 deletions
worker/api/python/setup.py.in
with
7 additions
and
3 deletions
worker/api/python/CMakeLists.txt
+
1
−
0
View file @
47c5e711
get_property
(
ASAPO_WORKER_LIB TARGET asapo-worker PROPERTY LOCATION
)
set
(
ASAPO_WORKER_INCLUDE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../cpp/include
)
if
((
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
AND
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
))
...
...
This diff is collapsed.
Click to expand it.
worker/api/python/dist/setup.py.in
+
2
−
1
View file @
47c5e711
from distutils.core import setup
from distutils.core import Extension
import numpy
ext_modules = [
Extension("asapo_worker", ["asapo_worker.cpp"],
extra_objects=['lib/libasapo-worker.a',
'lib/libcurl.a'],
include_dirs=["include/common","include"],
include_dirs=["include/common","include"
,numpy.get_include()
],
extra_compile_args=@EXTRA_COMPILE_ARGS@,
extra_link_args=@EXTRA_LINK_ARGS@,
language="c++")
...
...
This diff is collapsed.
Click to expand it.
worker/api/python/setup.py.in
+
4
−
2
View file @
47c5e711
...
...
@@ -3,13 +3,15 @@ from distutils.core import Extension
from Cython.Build import cythonize
import numpy
module = Extension("asapo_worker", ["asapo_worker.pyx"],
extra_objects=['@ASAPO_WORKER_LIB@',
'@CURL_LIBRARIES@'],
include_dirs=["@ASAPO_CXX_COMMON_INCLUDE_DIR@","@ASAPO_WORKER_INCLUDE_DIR@"],
include_dirs=["@ASAPO_CXX_COMMON_INCLUDE_DIR@","@ASAPO_WORKER_INCLUDE_DIR@"
,numpy.get_include()
],
extra_compile_args=@EXTRA_COMPILE_ARGS@,
extra_link_args=@EXTRA_LINK_ARGS@,
language="c++"
language="c++"
,
)
ext_modules = cythonize([module])
...
...
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