Skip to content

Commit c00fd48

Browse files
committed
Fix the dependency preparation
1 parent 97d4860 commit c00fd48

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

setup.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
from distutils import dir_util
22
from os.path import dirname, join
33
from urllib.request import urlretrieve
44

@@ -7,12 +7,6 @@
77
if __name__ == "__main__":
88
cdn = "https://cdnjs.cloudflare.com/ajax/libs/mermaid/9.4.3/mermaid.js"
99
static = join(dirname(__file__), "src", "django_mermaid", "static")
10-
print("ls src\n\n")
11-
os.system("ls src")
12-
print("ls src/django_mermaid\n\n")
13-
os.system("ls src/django_mermaid")
14-
print("ls src/django_mermaid/static\n\n")
15-
os.system("ls src/django_mermaid/static")
16-
open(join(static, "mermaid.js"), "w").close()
10+
dir_util.create_tree(static, ["mermaid.js"])
1711
urlretrieve(cdn, join(static, "mermaid.js"))
1812
setup()

src/django_mermaid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.1"
1+
__version__ = "0.0.2"

0 commit comments

Comments
 (0)