Document setuptools.build_meta
See original GitHub issueThere is currently no documentation for setuptools.build_meta
!
We need to cover:
- What it is - see this three part series for more background on python packaging and PEP 517
- How to use it - you need to add a
pyproject.toml
to your source root with the following configuration (implementer - please confirm the right versions to pin):
[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build-meta"
- How the semantics of a
setuptools.build_meta
differ from directly invokingsetup.py
; at the moment, the only deliberate difference is that withsetuptools.build_meta
, the source root is not onsys.path
when you invoke it, meaning that you should either stop importing things from the local path, or addsys.path.insert(0, os.dirname(__file__))
to the top of yoursetup.py
file. - The fact that, if you are a
setup.cfg
-only project, when usingpyproject.toml
setup.py
is now optional!
We can cover setuptools.build_meta:__legacy__
in this ticket or in a separate one.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:27
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Build System Support - Setuptools - Python Packaging Authority
How to use it?#. Start with a package that you want to distribute. You will need your source files, a pyproject.toml file and ......
Read more >ImportError: No module named 'setuptools.build_meta'
As ignorant as I am, I tried dropping this file into the site-packages\pip_vendor\pep517 directly with no change. I'm sure this is simple, but...
Read more >Module 'setuptools.build_meta' has no attribute '__legacy__'
I am trying to install RASA on Ubuntu: It is erroring out with: Collecting SQLAlchemy<1.4.0,>=1.3.3 Using cached SQLAlchemy-1.3.15.tar.gz ...
Read more >error: failed building wheel for pycocotools failed to ... - You.com
... configsettings, File "C:\Users\mattw\AppData\Local\Temp\pip-build-env-x520118t\overlay\Lib\site-packages\setuptools\buildmeta.py", line 229, ...
Read more >A Practical Guide to Setuptools and Pyproject.toml
toml file. The goal of this file is to allow you to define what build tools are needed in order to build your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello! Just a trivial note, the
build-backend
in thepyroject.toml
should bebuild_meta
instead ofbuild-meta
otherwise an error will be thrownHi @codeandfire please feel free to submit PRs, documentation improvements are always welcome!
I just recomend discussing your ideas first if they are very big or disruptive (e.g. removing/moving documentation pages).