Skip to content

Commit 8020b10

Browse files
authored
Merge pull request #375 from informatics-lab/fix-conda-build-2
use absolute path to find JS on Windows
2 parents 79648b4 + bb0bdf0 commit 8020b10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

forest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.. automodule:: forest.presets
2424
2525
"""
26-
__version__ = '0.16.3'
26+
__version__ = '0.16.4'
2727

2828
from .config import *
2929
from . import (

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313
NAME = "forest"
14+
JS_DIR = os.path.join(os.path.dirname(__file__), NAME, r"js")
1415

1516

1617
def find_version():
@@ -63,7 +64,7 @@ class BuildJSCommand(setuptools.command.build_py.build_py):
6364
"""
6465
def run(self):
6566
cwd = os.getcwd()
66-
os.chdir(os.path.join("forest", "js"))
67+
os.chdir(JS_DIR)
6768
if not os.path.exists("node_modules"):
6869
subprocess.check_call(["npm", "install"])
6970
subprocess.check_call(["npm", "run", "build"])

0 commit comments

Comments
 (0)