Skip to content

Commit e2b3059

Browse files
add readthedocs install hack
1 parent 760beff commit e2b3059

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import argparse
2+
import sys
3+
import subprocess
4+
import os
5+
6+
parser = argparse.ArgumentParser(description="hack to let readthedoc install work")
7+
parser.add_argument("action", choices=["install"])
8+
9+
if __name__ == "__main__":
10+
parser.parse_args()
11+
sys.exit(
12+
subprocess.call(
13+
[sys.executable, "-m", "pip", "install", "-e", os.path.dirname(__file__)]
14+
)
15+
)

0 commit comments

Comments
 (0)