Skip to content

Commit 5615cae

Browse files
committed
Use manifest.in to graft isa-l submodule.
1 parent ef1e2b8 commit 5615cae

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
graft src/isal/isa-l

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from setuptools import Extension, find_packages, setup
3030
from setuptools.command.build_ext import build_ext
3131

32-
ISA_L_SOURCE_ARCHIVE = os.path.join("src", "isal", "isa-l", "v2.30.0.tar.gz")
32+
ISA_L_SOURCE = os.path.join("src", "isal", "isa-l")
3333

3434

3535
class IsalExtension(Extension):
@@ -73,10 +73,9 @@ def build_extension(self, ext):
7373
@functools.lru_cache(maxsize=None)
7474
def build_isa_l():
7575
# Creating temporary directories
76-
unpack_dir = tempfile.mktemp()
76+
build_dir = tempfile.mktemp()
7777
temp_prefix = tempfile.mkdtemp()
78-
shutil.unpack_archive(ISA_L_SOURCE_ARCHIVE, unpack_dir)
79-
build_dir = os.path.join(unpack_dir, "isa-l-2.30.0")
78+
shutil.copytree(ISA_L_SOURCE, build_dir)
8079

8180
# Build environment is a copy of OS environment to allow user to influence
8281
# it.
@@ -110,7 +109,9 @@ def build_isa_l():
110109
zip_safe=False,
111110
packages=find_packages('src'),
112111
package_dir={'': 'src'},
113-
package_data={'isal': ['*.pxd', '*.pyx', os.path.join('isa-l', '*')]},
112+
package_data={'isal': ['*.pxd', '*.pyx',
113+
'isa-l/LICENSE', 'isa-l/README.md',
114+
'isa-l/Release_notes.txt']},
114115
url="https://github.com/pycompression/python-isal",
115116
classifiers=[
116117
"Programming Language :: Python :: 3 :: Only",

0 commit comments

Comments
 (0)