Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lysonar
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
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
isac .
lysonar
Commits
ca5a05af
Commit
ca5a05af
authored
9 months ago
by
Irreq
Browse files
Options
Downloads
Patches
Plain Diff
Improved Cython build with variable check
parent
ea743e89
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
module/requirements.txt
+1
-1
1 addition, 1 deletion
module/requirements.txt
module/setup.py.in
+24
-5
24 additions, 5 deletions
module/setup.py.in
with
25 additions
and
6 deletions
module/requirements.txt
+
1
−
1
View file @
ca5a05af
...
...
@@ -2,4 +2,4 @@ pyyaml
cython
numpy
matplotlib
setuptools
This diff is collapsed.
Click to expand it.
module/setup.py.in
+
24
−
5
View file @
ca5a05af
...
...
@@ -30,7 +30,6 @@ import numpy
import
config
# distutils.log.set_verbosity(-1) # Disable logging in disutils
distutils
.
log
.
set_verbosity
(
distutils
.
log
.
DEBUG
)
# Set DEBUG level
...
...
@@ -45,7 +44,15 @@ compiler_directives = {
"
boundscheck
"
:
config
.
CYTHON_BOUNDS_CHECK
,
# Assume user does not index out of bounds
}
PROJECT_SOURCE
=
"
${CMAKE_CURRENT_SOURCE_DIR}/src
"
PROJECT_SOURCE
:
str
=
"
${CMAKE_CURRENT_SOURCE_DIR}/src
"
PROJECT_NAME
:
str
=
"
${CMAKE_PROJECT_NAME}
"
assert
PROJECT_NAME
!=
""
,
"
Project name is empty, check CMakeLists.txt
"
PROJECT_VERSION
:
str
=
"
${CMAKE_PROJECT_VERSION}
"
assert
PROJECT_VERSION
!=
""
,
"
Project version is empty, check CMakeLists.txt
"
EIGEN_SOURCE
=
"
/usr/include/eigen3
"
NUMPY_SOURCE
=
numpy
.
get_include
()
...
...
@@ -60,12 +67,24 @@ ext_modules = [
include_dirs
=
[
PROJECT_SOURCE
,
EIGEN_SOURCE
,
NUMPY_SOURCE
],
language
=
"
c++
"
,
),
Extension
(
name
=
"
pipeline
"
,
sources
=
[
"
${CMAKE_CURRENT_SOURCE_DIR}/module/src/pipeline.pyx
"
,
# "${CMAKE_CURRENT_SOURCE_DIR}/module/src/antenna.pyx",
"
${CMAKE_CURRENT_SOURCE_DIR}/src/pipeline.cpp
"
,
"
${CMAKE_CURRENT_SOURCE_DIR}/src/ring_buffer.cpp
"
,
"
${CMAKE_CURRENT_SOURCE_DIR}/src/receiver.cpp
"
,
],
include_dirs
=
[
PROJECT_SOURCE
,
EIGEN_SOURCE
,
NUMPY_SOURCE
],
language
=
"
c++
"
,
),
]
setup
(
name
=
"
${CMAKE_
PROJECT_NAME
}
"
,
version
=
"
${
PROJECT_VERSION
}
"
,
cmdclass
=
{
"
build_ext
"
:
build_ext
},
name
=
PROJECT_NAME
,
version
=
PROJECT_VERSION
,
cmdclass
=
{
"
build_ext
"
:
build_ext
},
ext_modules
=
cythonize
(
ext_modules
,
annotate
=
config
.
CYTHON_ANNOTATE
,
...
...
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