GithubHelp home page GithubHelp logo

Comments (3)

wenLiangcan avatar wenLiangcan commented on July 22, 2024 1

@Popolon pypa/* based build should be enabled by the --pep517 option currently.

from pip2pkgbuild.

wenLiangcan avatar wenLiangcan commented on July 22, 2024

Actually, pip2pkgbuild does support generation of PEP517 (the pypa/build, pypa/installer staffs mentioned in your screenshot) based PKGBUILD by the --pep517 option. But, it will only generate such PKGBUILD if there's a pyproject.toml file provided by the Python module, according to the wiki.

However, after I tried, it seems pypa/build and pypa/installer can even deal with modules without the TOML file. So, I will release a new version to remove the verification logic of the --pep517 option.

from pip2pkgbuild.

Popolon avatar Popolon commented on July 22, 2024

looks like 0.3.4 still try to use setup.py.

A solution could be this in PKGBUILD:

in build():

if [ -e setup.py ]; then
  python setup.py build
else
  python -m build --wheel --no-isolation
fi

and in package():

if [ -e setup.py ]; then
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
else
  python -m installer --destdir="${pkgdir}" dist/*.whl
fi

from pip2pkgbuild.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.