Skip to content

Commit

Permalink
fix: headers include issue using MANIFEST.in
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 29, 2024
1 parent 2cf617e commit 6a2a9fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 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

*
* Final fix for missing headers using `MANIFEST.in`

## [1.2.4] - 2024-05-29

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include src/colony_npapi *.h
25 changes: 12 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
""" The license for the module """

import os
import glob
import setuptools


Expand Down Expand Up @@ -74,11 +73,18 @@ def rollback_sources(sources, base=".cpp", target=".c"):
"-DCOLONY_PLATFORM_UNIX",
]
),
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"),
sources=[
"src/**/*.h",
"src/colony_npapi/stdafx.c",
"src/colony_npapi/encoding/base_64.c",
"src/colony_npapi/plugin/base.c",
"src/colony_npapi/plugin/python.c",
"src/colony_npapi/plugin/util.c",
"src/colony_npapi/print/print_unix.c",
"src/colony_npapi/print/print_win32.c",
"src/colony_npapi/system/gui_unix.c",
"src/colony_npapi/system/gui_win32.c",
],
)

if os.name in ("nt",):
Expand All @@ -96,13 +102,6 @@ def rollback_sources(sources, base=".cpp", target=".c"):
packages=["npcolony_py", "npcolony_py.test"],
test_suite="npcolony_py.test",
package_dir={"": os.path.normpath("src/python")},
package_data={
"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],
classifiers=[
Expand Down

0 comments on commit 6a2a9fc

Please sign in to comment.