Skip to content

Commit bdafc25

Browse files
committed
doc: scripts/mkdoc.sh now ensures that python-igraph is installed from a wheel (PyDoctor does not like the bootstrap scripts added by Python eggs)
1 parent ace6896 commit bdafc25

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/mkdoc.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cd ${ROOT_FOLDER}
1515
if [ ! -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
1919
fi
2020

2121
PYDOCTOR=.venv/bin/pydoctor
@@ -29,6 +29,14 @@ PWD=`pwd`
2929
echo "Removing existing documentation..."
3030
rm -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+
3240
IGRAPHDIR=`.venv/bin/python3 -c 'import igraph, os; print(os.path.dirname(igraph.__file__))'`
3341

3442
echo "Generating HTML documentation..."

0 commit comments

Comments
 (0)