Skip to content

Commit 6638e72

Browse files
committed
add workaround for setupbase
1 parent baff955 commit 6638e72

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- name: Install package and docs dependencies
9595
run: |
9696
set -eux
97-
pip install -vv -U -e .[docs,examples,test] requests_cache 'traitlets==4.*'
97+
pip install -vv -U .[docs,examples,test] requests_cache 'traitlets==4.*'
9898
- name: Build docs
9999
run: |
100100
set -eux

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# -*- coding: utf-8 -*-
22
from pathlib import Path
33

4+
HERE = Path(__file__).parent.resolve()
5+
6+
try:
7+
import setupbase
8+
except:
9+
import sys
10+
import os
11+
sys.path += [str(HERE)]
12+
413
from setupbase import (
514
log,
615
create_cmdclass,
@@ -14,7 +23,6 @@
1423

1524
LONG_DESCRIPTION = 'A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure.'
1625

17-
HERE = Path(__file__).parent.resolve()
1826
name = 'pythreejs'
1927
py_path = (HERE / name)
2028
js_path = (HERE / "js")

0 commit comments

Comments
 (0)