-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom develop command to link data files in setup.py #255
Comments
Please note that the solution linked will break the |
Ah good to know :) Maybe there is a better way to do it so it's more robust on Windows? |
I have one PR on Windows symlink support for CPython that was merged, and one that is still open. If you put the symlink call in a try/except clause, with the current behavior as fallback, that is likely the best way. Then, the symlinking should just work once CPython gets better support. |
Could you link to the PR @vidartf ? |
No, I cannot believe it will (unless I have misunderstood how CPython works). I don't think it will be backported to 3.8 either, and given the speed things are going, I doubt it will be in for 3.9... |
Either way, it won't work on all Windows machines, so the try/except clause would still be needed no matter what. |
What should we do instead, give a warning saying you should run it in admin mode? And if not possible (user cannot have admin right), what should a user do, just do a normal |
You could just make a helper script (possibly an entry point) that does the copy for you, and ask the user to run that when the datafiles change. |
Why not rerun |
Sure, you could tell the user to:
|
Closing as this was implemented as a hatch plugin in #1197. |
We can add a custom develop command to the
setup.py
to automatically link data files, as mentioned in #253 (comment).This would help with the development workflow and make the process more automated.
The text was updated successfully, but these errors were encountered: