-
Notifications
You must be signed in to change notification settings - Fork 128
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
Fix loose files during install #375
base: master
Are you sure you want to change the base?
Conversation
6c92080
to
b951645
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #375 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 326 325 -1
=========================================
- Hits 326 325 -1 ☔ View full report in Codecov by Sentry. |
I think the sdist would require |
This is great! This wouldn't be blocking, but I wonder if we could write a CI test to verify that these files stay in the right places? |
So it seems by moving the file definition into CMake instead of I'm not a python expert, and since |
I think
And I was able to |
I think so. I would like to see such a test too. |
Thanks for pointing this out. I will take a look of how |
d7cfa3a
to
687593a
Compare
@wingkitlee0 what are you trying to figure out with these workflow changes? |
@ajfriend nevermind about it. I will revert those changes. Anyway, I found this |
687593a
to
aec6941
Compare
Signed-off-by: Kit Lee <[email protected]>
aec6941
to
cdb881b
Compare
@ajfriend Fixed everything now...with a much simpler solution. See the new description. As I touched and reverted the workflow, you may need to re-approve the pipeline. Thanks! |
Awesome. Great work! One question: Is there an easy way to toggle if the test files are included or not? |
It should be just adding this line to
|
Overall, this looks great. Thanks again! The only soft blocker is that what |
@@ -3,4 +3,5 @@ requires = [ | |||
'scikit-build', | |||
'cython', | |||
'cmake', | |||
'setuptools-scm', |
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.
I'm not sure I totally understand what's going on in this change, but as I got it, adding this package changes something about how the build works. If that's the case, could a comment be added here that explains what we're relying on this for? I feel like otherwise it could be accidentally removed without understanding the context of this change.
@wingkitlee0 I tested locally with
But when I
|
In parallel, I'm also trying #378 |
Interesting. This is yet another way to install it.. I would like to know if people can
I dont have strong opinion as it may simply make more sense to migrate to other build system (if they work with Cython and CMake) |
To solve #374
[Updated since first review]
It turns out the solution is much simpler than originally thought!
Now we use
setuptools-scm
for better file discovery and path management.Added the following lines to
MANIFEST.in
to exclude some newly included folders (were originally excluded)There are about 20 extra files in the sdist compared to the current master. They are mostly files in the subfolders of
tests/
I have checked with pip-installing
.
, sdist and wheel. They all work fine:that is, no stray source files outside
site-packages/h3