-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from libAtoms/22_meson
BUILD: Switch to Meson for building
- Loading branch information
Showing
49 changed files
with
731 additions
and
2,861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
matscipy/_version.py export-subst | ||
*.fs -linguist-detectable | ||
.gitattributes text eol=lf | ||
*.py text eol=lf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Find numpy include directory | ||
include_numpy = run_command(python, | ||
['-c', 'import os; os.chdir(".."); import numpy; print(numpy.get_include())'], | ||
check : true | ||
).stdout().strip() | ||
|
||
link_args = [] | ||
|
||
# Statically linking gcc components if on windows | ||
if build_machine.system() == 'windows' | ||
link_args = ['-static-libstdc++', '-static-libgcc', '-static'] | ||
endif | ||
|
||
|
||
# Build and install the extension module | ||
module = python.extension_module( | ||
'_matscipy', # Name of the module | ||
[ # List of sources | ||
'angle_distribution.cpp', | ||
'islands.cpp', | ||
'neighbours.c', | ||
'ring_statistics.cpp', | ||
'tools.c', | ||
'matscipymodule.c' | ||
], | ||
install: true, # Install it | ||
subdir: 'matscipy', | ||
include_directories: include_directories(include_numpy), | ||
dependencies: [ # List of dependencies | ||
python.dependency(), # Add Python.h as dependency | ||
], | ||
link_args: link_args, | ||
) |
Oops, something went wrong.