Skip to content

Commit 92a5fcc

Browse files
committed
Add Python to ECOSYSTEM_CONFIGS
Signed-off-by: Jono Yang <[email protected]>
1 parent b2ec8a5 commit 92a5fcc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scanpipe/pipes/d2d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2259,10 +2259,11 @@ def _map_javascript_strings(to_resource, javascript_from_resources, logger):
22592259

22602260
def map_python_pyx_to_binaries(project, logger=None):
22612261
"""Map Cython source to their compiled binaries in ``project``."""
2262+
python_config = d2d_config.get_ecosystem_config(ecosystem="Python")
22622263
from_resources = (
22632264
project.codebaseresources.files()
22642265
.from_codebase()
2265-
.filter(extension__endswith=".pyx")
2266+
.filter(extension__in=python_config.source_symbol_extensions)
22662267
)
22672268
to_resources = (
22682269
project.codebaseresources.files().to_codebase().has_no_relation().elfs()

scanpipe/pipes/d2d_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ class EcosystemConfig:
131131
ecosystem_option="Windows",
132132
source_symbol_extensions=[".c", ".cpp", ".h", ".cs"],
133133
),
134+
"Python": EcosystemConfig(
135+
ecosystem_option="Python",
136+
source_symbol_extensions=[".pyx", ".pxd"],
137+
),
134138
}
135139

136140

0 commit comments

Comments
 (0)