Skip to content
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

Improve python build #245

Merged
merged 8 commits into from
Aug 20, 2024
Merged

Improve python build #245

merged 8 commits into from
Aug 20, 2024

Conversation

tschoonj
Copy link
Owner

@tschoonj tschoonj commented Aug 7, 2024

Various improvements in this PR:

  • Add meson supported examples to tests
  • Ensure cython generated bindings work properly on Windows

@tschoonj tschoonj force-pushed the improve-python-build branch from 316277e to da353db Compare August 8, 2024 04:57
@tschoonj tschoonj force-pushed the improve-python-build branch from 7c7b49e to a532d54 Compare August 19, 2024 13:45
@tschoonj tschoonj force-pushed the improve-python-build branch from a532d54 to 6a3237f Compare August 19, 2024 13:53
@tschoonj tschoonj marked this pull request as ready for review August 20, 2024 05:23
@@ -1491,7 +1492,7 @@ Q1_SHELL = xrl.Q1_SHELL
Q2_SHELL = xrl.Q2_SHELL
Q3_SHELL = xrl.Q3_SHELL

def AtomicWeight(cnp.ndarray[long, ndim=1] Z not None):
def AtomicWeight(cnp.ndarray[int64_t, ndim=1] Z not None):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t20100 I had to make a change to your patch as it didn't work properly on Windows with the numpy example:

ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

This is due to Windows treating longs as 32-bit integers instead of 64-bit.

@tschoonj tschoonj merged commit 39f1d36 into master Aug 20, 2024
40 checks passed
@tschoonj tschoonj deleted the improve-python-build branch August 20, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant