Replies: 2 comments 6 replies
-
Hi @JDLH, I have never tried myself (and I don't know how it will play together with other package tools like [egg_info]
egg_base = ... You might already know the following information (so please feel free to ignore the following items):
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the prompt answer @abravalheri . It is very helpful. I will give it a try. There are a couple of insights in your answer which I did not see in the documentation. 1. There is a way of transforming the syntax of a |
Beta Was this translation helpful? Give feedback.
-
I am new to setuptools. I have started using it to package up a small, 1-module utility for internal use.
I am surprised to see, in my
src/
directory where my Python modules lives, asrc/My_Project.egg_info/*
directory. It appears to have metadata in it. It appears to get constructed by setuptools when it performs the build.It doesn't seem sensible to have this build artifact, with project metadata, in my
src/
directory. I would like to locate it in its own directory, as a sibling tosrc/
. Maybe put it in a directorybuild-info/
. How can I tell setuptools where to put this directory as it builds my project?The only documentation I can find about controlling the construction of this
....egg_info/
directory is in the Command Reference for setuptools, section "egg_info - Create egg metadata and set build tags". As far as I can tell, everything in that section refers to commands issued from the shell viasetup.py
. But I am not usingsetup.py
now, and would like to avoid it. From what I understand,setup.py
is deprecated, and I should not use it in this new project.I am controlling setuptools with a
setup.cfg
file, and a minimalpyproject.toml
file. How can I tell setuptools where to put this....egg_info/
directory via eithersetup.cfg
orpyproject.toml
? And where is this documented?Beta Was this translation helpful? Give feedback.
All reactions