Skip to content

Commit 0ad5bb9

Browse files
committed
More packaging woes for 10.0.0
This time, for sure!
1 parent 002911e commit 0ad5bb9

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ include mathics_django/Makefile
88
include requirements-full.txt
99
exclude mathics_django/autoload
1010
recursive-include mathics_django *.py
11+
recursive-include mathics_django/web *.py
12+
recursive-include mathics_django/web/controllers *.py
1113
recursive-include mathics_django/web/media *
14+
recursive-include mathics_django/web/migrations *.py
1215
recursive-include mathics_django/web/templates *
16+
recursive-include mathics_django/web/templatetags *.py
1317
recursive-include test *.py

setup.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55

66
if __name__ == "__main__":
77
# TODO: move setup info into pyproject.toml
8+
# However by having this here, we can *debug* this stuff easier.
89
setup(
910
packages=find_packages(),
10-
# include_package_data has to be False,
11-
# or else Python will erroneously find
12-
# "autoload", "doc" and others as an
13-
# importable Python package, which it is not,
14-
# and complain with a warning!
11+
# Below, we include set include_package_data to False *and*
12+
# include the python files explicitly found in find_packaages
13+
# above. Without this Python warns that it can't find
14+
# "autoload", "doc" and others when building a wheel.
1515
include_package_data=False,
1616
package_data={
1717
"mathics_django": [
1818
"autoload/settings.m",
19+
"doc/*.py",
1920
"doc/*.pcl",
21+
"web/*.py",
22+
"web/controllers/*.py",
2023
"web/media/css/*.css",
2124
"web/media/doc/*.png",
2225
"web/media/img/*",
@@ -25,7 +28,9 @@
2528
"web/media/js/*.js",
2629
"web/media/js/**/*.js",
2730
"web/media/js/mathics-threejs-backend/**/*",
31+
"web/migrations/*.py",
2832
"web/templates/**/*.html",
33+
"web/templatetags/*.py",
2934
"web/media/js/mathjax/**/*",
3035
]
3136
},

0 commit comments

Comments
 (0)