Skip to content

Commit 83fd2ce

Browse files
committed
dist: Fix handling of package data
1 parent 8a9ad90 commit 83fd2ce

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed
File renamed without changes.

pyspod/utils/postproc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919

2020
# Current, parent and file paths
2121
CWD = os.getcwd()
22-
CF = os.path.realpath(__file__)
23-
CFD = os.path.dirname(CF)
24-
plot_support = os.path.join(CFD, '../', 'plotting_support')
22+
CFD = os.path.dirname(os.path.realpath(__file__))
23+
plot_support = os.path.join(CFD, 'plotting_support')
2524

2625
# ---------------------------------------------------------------------------
2726

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers =
2424
Topic :: Scientific/Engineering :: Mathematics
2525

2626
[options]
27-
packages = find:
27+
packages = find_namespace:
2828
zip_safe = False
2929
include_package_data = True
3030
python_requires = >=3.7
@@ -41,9 +41,9 @@ install_requires =
4141
pyyaml
4242

4343
[options.package_data]
44-
pyspod =
45-
plotting_support/coast.mat
46-
plotting_support/coast_centred.mat
44+
pyspod.utils.plotting_support =
45+
coast.mat
46+
coast_centred.mat
4747

4848
[options.extras_require]
4949
ai = tensorflow

0 commit comments

Comments
 (0)