Skip to content

Commit

Permalink
chore: new c and h files in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 29, 2024
1 parent a3007b4 commit 3576995
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

*
* New strategy for source (c) and header files (h) in `setup.py`

## [1.2.3] - 2024-05-01

Expand Down
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def rollback_sources(sources, base=".cpp", target=".c"):
"-DCOLONY_PLATFORM_UNIX",
]
),
sources=glob.glob("src/colony_npapi/**/*.c", recursive=True),
sources=glob.glob("src/colony_npapi/*.c")
+ glob.glob("src/colony_npapi/encoding/*.c")
+ glob.glob("src/colony_npapi/plugin/*.c")
+ glob.glob("src/colony_npapi/print/*.c")
+ glob.glob("src/colony_npapi/system/*.c"),
)

if os.name in ("nt",):
Expand All @@ -93,7 +97,11 @@ def rollback_sources(sources, base=".cpp", target=".c"):
test_suite="npcolony_py.test",
package_dir={"": os.path.normpath("src/python")},
package_data={
"npcolony_py": glob.glob("src/colony_npapi/**/*.h", recursive=True),
"npcolony_py": glob.glob("src/colony_npapi/*.h")
+ glob.glob("src/colony_npapi/encoding/*.h")
+ glob.glob("src/colony_npapi/plugin/*.h")
+ glob.glob("src/colony_npapi/print/*.h")
+ glob.glob("src/colony_npapi/system/*.h"),
},
zip_safe=False,
ext_modules=[module],
Expand Down

0 comments on commit 3576995

Please sign in to comment.