Skip to content

Commit 85d8847

Browse files
committed
Restructuring the package to enable assets to be installed.
1 parent ae904a4 commit 85d8847

File tree

9 files changed

+3
-3
lines changed

9 files changed

+3
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
include requirements.txt
2-
include torch_concepts/data/traffic_construction/assets/*
2+
include torch_concepts/assets/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@
7676
setup_requires=["setuptools_scm"],
7777
include_package_data=True, # We need this to include static assets (images)
7878
package_data={
79-
"pytorch_concepts": ["data/traffic_construction/assets/*"],
79+
"torch_concepts.assets": ["*"],
8080
}
8181
)

torch_concepts/data/traffic_construction/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
# Directory where all the useful sprites are stored
77
SPRITES_DIRECTORY = lambda x: pkg_resources.resource_filename(
88
'torch_concepts',
9-
f'data/traffic_construction/assets/{x}',
9+
f'assets/{x}',
1010
)

0 commit comments

Comments
 (0)