File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cd ${ROOT_FOLDER}
1515if [ ! -d " .venv" ]; then
1616 # Create a virtual environment for pydoctor
1717 python3 -m venv .venv
18- .venv/bin/pip install pydoctor
18+ .venv/bin/pip install -U pydoctor wheel
1919fi
2020
2121PYDOCTOR=.venv/bin/pydoctor
@@ -29,6 +29,14 @@ PWD=`pwd`
2929echo " Removing existing documentation..."
3030rm -rf " ${DOC_API_FOLDER} /html" " ${DOC_API_FOLDER} /pdf"
3131
32+ echo " Removing existing python-igraph eggs from virtualenv..."
33+ SITE_PACKAGES_DIR=` .venv/bin/python3 -c ' import sysconfig; print(sysconfig.get_paths()["purelib"])' `
34+ rm -rf " ${SITE_PACKAGES_DIR} " /python_igraph* .egg
35+ rm -rf " ${SITE_PACKAGES_DIR} " /python_igraph* .egg-link
36+
37+ echo " Installing python-igraph in virtualenv..."
38+ rm -f dist/* .whl && .venv/bin/python setup.py bdist_wheel && .venv/bin/pip install dist/* .whl
39+
3240IGRAPHDIR=` .venv/bin/python3 -c ' import igraph, os; print(os.path.dirname(igraph.__file__))' `
3341
3442echo " Generating HTML documentation..."
You can’t perform that action at this time.
0 commit comments