Replies: 1 comment 3 replies
-
I am not sure if I understand the question. Setuptools cannot create directories by itself in the moment of the installation. What setuptools can do is to create files inside the wheel archive (which is basically a zip file), and then later the installer (e.g. Because the wheel is produced in a machine that can be different than the one owned by the end user (and often that is the case), there is no room for running hooks during installation time in setuptools. The installation is performed by a completely separated tool (e.g. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
just like the code below, I have do some of the google, lots of the blogs or article told me that if I want the self-defined cmd (
os.makedirs('/path/to/directory', exist_ok=True)
) like here below can be executed and called when user execute cmdpip install <package>
, I should just do like below, add the calssCreateDirectoryCommand
into thecmdclass
, but when I did it, I found that the self-defined cmd can't be called at all,but will call when you do the buidpython -m build
, but I dan't want it, I just want the cmd can be executed when the user install the package with the cmdpip install <pacakge>
, how how can I do?Beta Was this translation helpful? Give feedback.
All reactions