Skip to content

Commit

Permalink
build: add sources when building
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 17, 2025
1 parent 5e56df3 commit 643e98a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
BUILD_DIR = Path("cython_build")
compile_args = []
link_args = []
include_dirs = ["bwa"]
include_dirs = ["bwa", "pybwa"]
libraries = ['m', 'z', 'pthread']
library_dirs=['bwa']
library_dirs=['pybwa', 'bwa']
extra_objects = []
h_files = []
c_files = []
for root_dir in ["bwa", "pybwa"]:
for root_dir in library_dirs:
h_files.extend(str(x) for x in Path(root_dir).rglob("*.h"))
c_files.extend(str(x) for x in Path(root_dir).rglob("*.c") if x.name not in ['example.c', 'main.c'])

Expand Down Expand Up @@ -117,8 +117,9 @@ def build():
'platforms': ['POSIX', 'UNIX', 'MacOS'],
'classifiers': [_f for _f in CLASSIFIERS.split('\n') if _f],
'url': 'https://github.com/fulcrumgenomics/pybwa',
'packages': ['pybwa'],
'package_dir': {'pybwa': 'pybwa'},
'packages': ['pybwa', 'pybwa.include.bwa'],
'package_dir': {'pybwa': 'pybwa', 'pybwa.include.bwa': 'bwa'},
'package_data': {'': ['*.pxd', '*.h', '*.c', 'py.typed', '*.pyi'], },
"ext_modules": extension_modules,
"cmdclass": {
"build_ext": cython_build_ext,
Expand Down

0 comments on commit 643e98a

Please sign in to comment.