Issue 16299: __build__ as a temp build directory for setup.py
Created on 2012-10-22 13:58 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg173521 - (view) | Author: anatoly techtonik (techtonik) | Date: 2012-10-22 13:58 | |
Currently distutils builds files in a temporary directory named 'build' in current dir if not specified otherwise. It will be pythonic to name this directory to be __build__ be default to distinguish it from project specific directories and clarify that this one can be safely removed (much like __pycache__). |
|||
| msg173523 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2012-10-22 14:24 | |
I see no reason to make this change. 'build' is pretty much universally understood to be something that can be blown away, and I think that making Python's naming convention different than that used by other open source software projects in similar contexts would be much more confusing than helpful. |
|||
| msg173529 - (view) | Author: anatoly techtonik (techtonik) | Date: 2012-10-22 15:21 | |
RDM> 'build' is pretty much universally understood to be something that can be blown away That's not true anymore in 2012. Why follow the bad practice? I also want to know what open source software project are you referring to. From my experience 'build' directory name is an ancient legacy from Unix C compilers of previous century. Java doesn't use it, MSVC never did it, CMake doesn't have it, Go seems to build everything in temp dir. |
|||
| msg173531 - (view) | Author: anatoly techtonik (techtonik) | Date: 2012-10-22 15:29 | |
Another difference from C sources that it is very convenient to use Python packages directly from source. In this case this unrelated 'build' dir will be the source of confusion if user previously tried to install the package. |
|||
| msg173534 - (view) | Author: Christian Heimes (christian.heimes) * ![]() |
Date: 2012-10-22 15:51 | |
The bug tracker is the wrong place to discuss your proposal. Please join the distutils-sig [1]. The group coordinates all efforts. [1] http://www.python.org/community/sigs/current/distutils-sig/ |
|||
| msg173621 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-10-23 15:46 | |
Ronald Oussoren on the mailing list: If the name of the build directory bothers you you can change it by adding two lines to ~/.pydistutils.cfg: [build] build-base = __build__ Agreed, closing. |
|||
| msg173739 - (view) | Author: anatoly techtonik (techtonik) | Date: 2012-10-25 07:10 | |
That's not an argument. I am asking about it in general. Another wart of Python. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:37 | admin | set | github: 60503 |
| 2012-10-25 07:10:49 | techtonik | set | messages: + msg173739 |
| 2012-10-23 15:46:36 | eric.araujo | set | messages: + msg173621 |
| 2012-10-23 15:45:43 | eric.araujo | set | stage: resolved |
| 2012-10-22 15:51:44 | christian.heimes | set | status: open -> closed type: enhancement messages: + msg173534 |
| 2012-10-22 15:29:22 | techtonik | set | status: pending -> open messages: + msg173531 |
| 2012-10-22 15:21:58 | techtonik | set | status: closed -> pending messages: + msg173529 |
| 2012-10-22 14:24:00 | r.david.murray | set | status: open -> closed nosy:
+ r.david.murray resolution: rejected |
| 2012-10-22 13:58:41 | techtonik | create | |
