-
Notifications
You must be signed in to change notification settings - Fork 46
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
Remove "run_tests.py" from data files #1534
Conversation
Thank you for your contribution. You are correct, and this is an issue - however, a word of warning: DIALS isn't a regular python project and we don't support the installation via For now I'd recommend following the installation instructions in https://dials.github.io/documentation/installation_developer.html instead |
Codecov Report
@@ Coverage Diff @@
## master #1534 +/- ##
=======================================
Coverage 65.72% 65.72%
=======================================
Files 615 615
Lines 69122 69122
Branches 9550 9550
=======================================
Hits 45429 45429
Misses 21854 21854
Partials 1839 1839 |
I wonder if we should put some special code that fails |
Aha, makes sense, thanks! I'm working with a student who's helping us at European XFEL to create Spack packages for some of the software we use, as we're planning on using Spack to manage our software installations at EuXFEL. He for help with some mysterious
Something like that should be possible, glanced through the bootstrap script and it's not too clear to me if/when setup.py gets used. It's possible to add something like this to the setup.py file: if __name__ == "__main__":
raise Exception("manual use of setup.py is not supported") And I think that during pip install, setup.py gets called with if __name__ == "__main__":
if 'egg_info' in sys.argv:
raise Exception("manual use of setup.py is not supported") Either of those would throw:
Although I'm completely clueless as to how dials gets set up so maybe this is a stupid suggestion 😄 |
My recollection was that the I imagine this was added as some initial explorations into trying to get it to build like a normal package. I don't know whether it's worth keeping this in at all. We've started planning towards being more of a normal package as part of moving towards having a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, fixing up the setup.py
is on the cards hopefully this year, following a pattern based on what we did with xia2. Until then I'm happy to merge this either way.
"run_tests.py"
is marked as a required data file for the package, but the file is now missing (seems to have been recently removed?).So now running pip install on the repository throws an error:
Removing the reference to
"run_tests.py"
fixes the error.