[Tutor] building python modules with use pip
milan.buska at yahoo.com
milan.buska at yahoo.com
Fri Sep 1 07:56:43 EDT 2023
Hello.
I'm a beginner so I want to ask.
Is this way of building the module correct:
name=python3-markupsafe
_realname=MarkupSafe
version=2.1.3
release=1
source=(https://files.pythonhosted.org/packages/source/M/$_realname/${_realname}-${version}.tar.gz)
build() {
cd ${_realname}-${version}
/usr/bin/pip3 wheel -w dist --isolated --no-deps $PWD
PIP_CONFIG_FILE=/dev/null \
/usr/bin/pip3 install \
--root-user-action=ignore \
--no-warn-script-location \
--ignore-installed \
--no-deps dist/*.whl \
--isolated \
--root=$PKG
}
Regards Milan
--------------------------------------------------
Remember, no question is too stupid and no problem
too small--We've all been beginners
More information about the Tutor
mailing list