building python modules with use pip

"milan.buska--- via Tutor" <[email protected]>
Newsgroups gmane.comp.python.tutor
Message-ID <[email protected]>
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
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.