This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Automatically remove build directory when build options changed
Type: behavior Stage: test needed
Components: Distutils2 Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, alexis, eric.araujo, kushal.das, tarek, techtonik
Priority: normal Keywords:

Created on 2012-10-15 11:33 by techtonik, last changed 2022-04-11 14:57 by admin.

Messages (2)
msg172961 - (view) Author: anatoly techtonik (techtonik) Date: 2012-10-15 11:33
After build options in setup.py is edited, command `python setup.py install` doesn't remove build directory and uses its cached content. This behavior is non-obvious and leads to errors.

The proposal is to calculate hash from build configuration, save it in build directory, and regenerate build dir when hash doesn't match.
msg173346 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-19 16:23
Right, this is desirable behaviour.

I thought setup.py and setup.cfg were dependencies in the files graph, meaning that if setup.py is newer than a py or so/dll file in the build dir, everything gets rebuilt.  I’ll have to check that.
History
Date User Action Args
2022-04-11 14:57:37adminsetgithub: 60442
2020-11-06 16:31:07eric.araujosetassignee: eric.araujo ->
components: - Distutils
versions: - Python 3.8, Python 3.9
2020-11-06 16:30:03iritkatrielsetversions: + Python 3.8, Python 3.9, Python 3.10, - Python 2.7, Python 3.2, Python 3.3
2012-10-19 16:23:57eric.araujosetstage: test needed
messages: + msg173346
versions: + Python 2.7, Python 3.3
2012-10-16 21:48:41Arfreversetnosy: + Arfrever
2012-10-15 12:56:35kushal.dassetnosy: + kushal.das
2012-10-15 11:33:54techtonikcreate