forked from jjjake/internetarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.29 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: docs
init:
pip install -e .
init-speedups:
pip install -e '.[speedups]'
test:
py.test --verbose
coverage:
py.test --verbose --cov-report html --cov=internetarchive
publish:
python setup.py register
python setup.py sdist upload
docs-init:
pip install -r docs/requirements.txt
docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/build/html/index.html.\n\033[0m"
pyyaml-egg:
pip install -d . pyyaml==3.11
tar -zxf PyYAML-3.11.tar.gz
cd PyYAML-3.11; \
sed -i '1i import setuptools' setup.py; \
python2.7 setup.py --without-libyaml bdist_egg
mkdir -p pex-dist
mv PyYAML-3.11/dist/*egg pex-dist/
ia-egg:
rm -rf build
git checkout pex; \
python2.7 setup.py bdist_egg
mv dist/internetarchive-*.egg pex-dist/
clean-pex:
rm -fr ia-pex "$$HOME/.pex/install/*" "$$HOME/.pex/build/*"
pex-binary: clean-pex pyyaml-egg ia-egg
pex -v --repo pex-dist/ -r PyYAML -r internetarchive -e internetarchive.iacli.ia:main -p ia-pex
pex-binary3.4: clean-pex pyyaml-egg ia-egg
pex -v --python=python3.4 --repo pex-dist/ -r PyYAML -r internetarchive -e internetarchive.iacli.ia:main -p ia-pex
pex-gevent-binary: clean-pex pyyaml-egg ia-egg
pex -v --python=python3.4 --repo pex-dist/ -r gevent -r PyYAML -r internetarchive -e internetarchive.iacli.ia:main -p ia-pex