forked from pennmem/RAMControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (25 loc) · 769 Bytes
/
setup.py
File metadata and controls
32 lines (25 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
from setuptools import setup
from subprocess import check_call as run, Popen
# this doesn't work...
def pre_install_tasks():
run("conda install -y numpy pandas".split())
run("pip install -U pip".split())
run("pip install -U setuptools".split())
run("pip install -r requirements.txt".split())
# install pyaudio
env = os.environ.copy()
env.update({
"CPATH": "/usr/local/include",
"LIBRARY_PATH": "LIBRARY_PATH=/usr/local/lib"
})
Popen("pip install pyaudio".split(), env=env).wait(timeout=30)
run("./getvideos.sh")
print("All done!")
with open("requirements.txt") as f:
requirements = f.read()
setup(
name="ramcontrol",
packages=["ramcontrol"],
# install_requires=requirements
)