scripts: don't install system site packages in virtualenv
This can create issues of the system includes conflicting packages. Create a symlink for the system "gpiod" instead. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
9a309ffd59
commit
40fbe1abf1
|
@ -57,7 +57,10 @@ create_virtualenv()
|
|||
rm -rf ${PYTHONDIR}
|
||||
fi
|
||||
|
||||
[ ! -d ${PYTHONDIR} ] && virtualenv -p /usr/bin/python3 --system-site-packages ${PYTHONDIR}
|
||||
if [ ! -d ${PYTHONDIR} ]; then
|
||||
virtualenv -p /usr/bin/python3 ${PYTHONDIR}
|
||||
ln -s /usr/lib/python3/dist-packages/gpiod* ${PYTHONDIR}/lib/python*/site-packages
|
||||
fi
|
||||
|
||||
# Install/update dependencies
|
||||
${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/moonraker-requirements.txt
|
||||
|
|
Loading…
Reference in New Issue