Commit f6260136 authored by Romain Casati's avatar Romain Casati
Browse files

Allowing extern files for Python modules.

parent 2d33fbf9
...@@ -31,7 +31,8 @@ if command == "sdist": ...@@ -31,7 +31,8 @@ if command == "sdist":
# use version number for cache busting # use version number for cache busting
src_dest = ((root_dir / "src" / "basthon-js", ('*.js', '*.js.map'), '.'), src_dest = ((root_dir / "src" / "basthon-js", ('*.js', '*.js.map'), '.'),
(root_dir / "src" / "basthon-py" / "build", ('*.js', '*.data'), Path(BASTHON_KERNEL_VERSION) / "basthon-py"), (root_dir / "src" / "basthon-py" / "build", ('*.js', '*.data'), Path(BASTHON_KERNEL_VERSION) / "basthon-py"),
(root_dir / "src" / "modules", ('*.whl', 'extern/*'), Path(BASTHON_KERNEL_VERSION) / "modules")) (root_dir / "src" / "modules", ('*.whl',), Path(BASTHON_KERNEL_VERSION) / "modules"),
(root_dir / "src" / "modules", ('extern/*',), Path(BASTHON_KERNEL_VERSION) / "modules" / "extern"))
# before creating the distribution, copy files from other locations in # before creating the distribution, copy files from other locations in
# the repository # the repository
...@@ -94,8 +95,10 @@ setup( ...@@ -94,8 +95,10 @@ setup(
# What does your project relate to? # What does your project relate to?
keywords='Python browser', keywords='Python browser',
# since https://github.com/pypa/setuptools/issues/1806
# is still open...
package_data={ package_data={
'basthon-kernel': ['data/*.*', 'data/*/*.*', 'data/*/*/*.*'] 'basthon-kernel': ['data/*.*', 'data/*/*.*', 'data/*/*/*.*', 'data/*/*/*/*.*']
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment