Skip to content

Commit b951645

Browse files
committed
migrated MANIFEST.in into CMake
Signed-off-by: Kit Lee <[email protected]>
1 parent d3f6c1d commit b951645

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,25 @@ install(
3838
"${CMAKE_CURRENT_BINARY_DIR}/src/h3lib/src/h3lib/include/h3api.h"
3939
DESTINATION
4040
src/h3/_cy)
41+
42+
# Include files from h3-py and h3 C libraries
43+
include(GNUInstallDirs)
44+
install(
45+
FILES
46+
"CHANGELOG.md"
47+
"CMakeLists.txt"
48+
"LICENSE"
49+
"readme.md"
50+
"requirements.in"
51+
DESTINATION
52+
"${CMAKE_INSTALL_DATADIR}/h3"
53+
)
54+
install(
55+
FILES
56+
"src/h3lib/LICENSE"
57+
"src/h3lib/README.md"
58+
"src/h3lib/VERSION"
59+
"src/h3lib/CMakeLists.txt"
60+
DESTINATION
61+
"${CMAKE_INSTALL_DATADIR}/h3lib"
62+
)

MANIFEST.in

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
# MANIFEST.in commands specified here:
22
# https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands
33

4-
include CHANGELOG.md
5-
include CMakeLists.txt
6-
include LICENSE
7-
include makefile
8-
include pyproject.toml
9-
include readme.md
10-
include requirements.in
11-
include setup.py
12-
13-
graft src/h3/
14-
15-
prune src/h3lib/
16-
17-
include src/h3lib/LICENSE
18-
include src/h3lib/README.md
19-
include src/h3lib/VERSION
20-
include src/h3lib/CMakeLists.txt
21-
22-
graft src/h3lib/cmake
23-
graft src/h3lib/src/h3lib
24-
exclude MANIFEST.in
4+
# Instead of using MANIFEST.in with skbuild, we moved the file list to CMakeLists.txt
5+
# for more fine-grained behavior

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def long_desc():
2929
author_email = about['__author_email__'],
3030
url = about['__url__'],
3131
classifiers = about['__classifiers__'],
32-
include_package_data=True,
32+
include_package_data=False,
3333
packages = find_packages(
3434
'src',
3535
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"],

0 commit comments

Comments
 (0)