Skip to content

Commit

Permalink
Stop using deprecated setuptools method of install
Browse files Browse the repository at this point in the history
The new way to install our Python3 interfaces is:

    python3 -m pip install -e .

See https://docs.python.org/3.6/installing/index.html#installing-index
  • Loading branch information
portante committed Jun 4, 2022
1 parent a735c3b commit 27912b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ install-lib:
install-python3-setup: install-util-scripts install-lib
${COPY} requirements.txt ${DESTDIR}
mkdir -p ${DESTDIR}/python3
(cd ..; SKIP_GENERATE_AUTHORS=1 SKIP_WRITE_GIT_CHANGELOG=1 python3 setup.py install --prefix=${DESTDIR}/python3)
${COPY} $(addprefix ${DESTDIR}/python3/local/bin/, ${click-scripts}) ${UTILDIR}/
(cd ..; python3 -m pip install --prefix=${DESTDIR}/python3 -e .)
${COPY} $(addprefix ${DESTDIR}/python3/bin/, ${click-scripts}) ${UTILDIR}/
rm -rf ${DESTDIR}/python3
${COPY} ../lib/pbench ${LIBDIR}/
rm -r $$(find ${LIBDIR} -name __pycache__) ${LIBDIR}/pbench/test ${LIBDIR}/pbench/server ${LIBDIR}/pbench/cli/server
Expand Down

0 comments on commit 27912b2

Please sign in to comment.