Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pyrodigal
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Martin Larralde
Pyrodigal
Commits
bbb4d328
Commit
bbb4d328
authored
4 months ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Disable Cython `linetrace` when compiling for PyPy
parent
34cd5715
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/prodigal/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/prodigal/CMakeLists.txt
src/scripts/cmake/CythonExtension.cmake
+9
-2
9 additions, 2 deletions
src/scripts/cmake/CythonExtension.cmake
with
10 additions
and
3 deletions
src/prodigal/CMakeLists.txt
+
1
−
1
View file @
bbb4d328
...
...
@@ -12,7 +12,7 @@ foreach(i RANGE 0 49)
add_custom_command
(
OUTPUT training
${
i
}
.c
COMMENT
"Extracting initialize_metagenome_
${
i
ndex
}
from training.c"
"Extracting initialize_metagenome_
${
i
}
from training.c"
COMMAND
Python::Interpreter
${
CMAKE_CURRENT_LIST_DIR
}
/../scripts/split_training.py
-i
${
CMAKE_CURRENT_LIST_DIR
}
/training.c
...
...
This diff is collapsed.
Click to expand it.
src/scripts/cmake/CythonExtension.cmake
+
9
−
2
View file @
bbb4d328
...
...
@@ -52,8 +52,13 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
-X warn.unused_arg=True
-X warn.unused_result=True
-X warn.multiple_declarators=True
-X linetrace=true
)
if
(
NOT Python_INTERPRETER_ID STREQUAL PyPy
)
set
(
CYTHON_DIRECTIVES
${
CYTHON_DIRECTIVES
}
-X linetrace=true
)
endif
()
else
()
set
(
CYTHON_DIRECTIVES
${
CYTHON_DIRECTIVES
}
...
...
@@ -98,7 +103,9 @@ macro(cython_extension _name)
target_link_libraries
(
${
_target
}
PUBLIC
${
CYTHON_EXTENSION_LINKS
}
)
if
(
CMAKE_BUILD_TYPE STREQUAL Debug
)
target_compile_definitions
(
${
_target
}
PUBLIC CYTHON_TRACE=1
)
if
(
NOT Python_INTERPRETER_ID STREQUAL PyPy
)
target_compile_definitions
(
${
_target
}
PUBLIC CYTHON_TRACE=1
)
endif
()
endif
()
# Preserve the relative project structure in the install directory
...
...
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