summaryrefslogtreecommitdiff
path: root/setuptools/build_meta.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-17/+4
|
* get_requires_for_build* hooks rely on 'installing' setup_requiresThomas Kluyver2020-08-061-4/+5
|
* Don't install setup_requires when run as a PEP-517 backend.Thomas Kluyver2020-08-061-1/+18
| | | | | | Under PEP-517, installing build dependencies is up to the frontend. Closes gh-2303
* Remove pkg_resources.py31compat.makedirs() in favor of the stdlibJon Dufresne2020-02-161-2/+1
| | | | | As setuptools is now python 3.5+, this compatibility shim is no longer necessary.
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-8/+16
|
* Set sys.argv[0] in build scripts run by build_metaEmiel Wiedijk2019-05-151-0/+7
| | | | | | | Some setup.py scripts, use sys.argv[0] to locate the source directory of a project. I added this to build_meta.__legacy__ since that is focused on backwards compatibility with old scripts. However, @pganssle said this behaviour should not be added to setuptools.build_meta. Fixes #1628
* build_meta: fix 2 issues with `build_wheel` / `build_sdist`Benoit Pierre2019-04-221-22/+25
| | | | | | | | | | Fix the following cases: * `build_sdist` is called with another sdist already present in the destination directory * `build_wheel` is called with the destination directory not already created
* Fix error when wheels already exist in dist/Shashank Singh2019-04-221-7/+16
| | | | | | | | | | `build_meta.build_wheel` assumes that the only wheel in its output directory is the one it builds, but prior to this, it also used the `dist/` folder as its working output directory. This commit uses a temporary directory instead, preventing an error that was triggered when previously-generated wheel files were still sitting in `dist/`. Fixes GH #1671
* Use pkg_resources.parse_requirements in build_metaPaul Ganssle2019-03-161-41/+2
| | | | | Since pkg_resources is imported elsewhere anyway, we don't get much value out of porting the requirement parser locally.
* Add requirement parsing in setuptools.build_metaPaul Ganssle2019-03-161-1/+44
| | | | | | | | | This fixes GH #1682 by porting the pkg_resources requirement parsing logic into setuptools.build_meta, so that all valid requirement specifiers passed to setup_requires will be added to the get_requires_for_build_* function outputs. Fixes GH #1682
* Add support for setup.cfg-only projectsPaul Ganssle2019-02-071-3/+13
| | | | | | Many projects can get away with an empty `setup.py` and use *only* the declarative `setup.cfg`. With the new PEP 517 backend, we can supply a default empty `setup.py` if one is not provided.
* Rename build_meta:legacy to build_meta:__legacy__Paul Ganssle2019-02-051-2/+2
|
* Move build_meta_legacy to build_meta:legacyPaul Ganssle2019-02-031-0/+35
| | | | | | Rather than exposing a top-level module for the legacy backend, we will move the legacy backend into the `setuptools.build_meta` module and specify it using the module:object syntax.
* Add __all__ to setuptools.build_metaPaul Ganssle2019-02-031-0/+6
|
* Wrap build_meta backend in a classPaul Ganssle2019-02-031-90/+97
| | | | | | | In order to support both the `build_meta` and `build_meta_legacy` backends, the core functionality is wrapped in a class with methods to be overridden in build_meta_legacy. The class is an implementation detail and should remain private.
* Merge pull request #1625 from pypa/bugfix/1623-always-targzJason R. Coombs2019-01-031-1/+1
|\ | | | | In build_meta (PEP 517), always built gztar
| * Always specify formats=gztar, overriding the project's legacy expectation ↵Jason R. Coombs2019-01-021-1/+1
| | | | | | | | that a zip sdist should be generated. Fixes #1623.
* | Extract common behavior into a functioniterator-unpackJason R. Coombs2019-01-021-14/+11
| |
* | Avoid hanging indentJason R. Coombs2019-01-021-4/+8
| |
* | Rely on iterable unpacking to extract one element from generator expression.Jason R. Coombs2019-01-021-8/+8
|/
* Backend should not say that setuptools is needed to buildPaul Moore2018-11-141-2/+2
|
* build_meta sdist directory delegate to --dist-dirBernat Gabor2018-09-161-4/+2
|
* build_meta.get_requires_for_build_sdist does not include wheelBernat Gabor2018-09-131-6/+5
| | | | | | the wheel package is not required to build a source distribution Resolves #1474.
* PEP 517 hook arguments are unicode, not str (and distutils objects to that)Paul Moore2018-08-201-1/+14
|
* BUG: look for dist-infos in subdirectoriesxoviat2017-10-191-4/+27
| | | | | | This code is a bit ugly, but it's also been tested with the pip test suite It's not the best solution long term (the best solution is to get the egg_info directory directly from egg_info), but it works for now and avoids technical risk.
* FIX: drop the more contraversial changesxoviat2017-10-161-3/+0
|
* FIX: setup the correct environment before loading setup.pyxoviat2017-10-151-1/+2
|
* FIX: revert changesxoviat2017-10-151-2/+0
|
* build_meta: print dist_info directoriesxoviat2017-10-151-0/+2
|
* BUG: re-initialize the master working setxoviat2017-10-151-0/+3
| | | | | | | In some cases (specifically when pip imports this module in a virtualenv), pkg_resources can already be imported, causing setuptools to load entry_points from an older version. Here, we re-initialize the master working set to fix the case where the entry points from an older setuptools are loaded.
* Renamed 'pep517' to 'build_meta'Jason R. Coombs2017-10-121-0/+148