-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: trigger building of updated binaries; deprecate python 3.8 (#105)
* MAINT: trigger building of updated binaries; deprecate python 3.8 * MAINT: update github action versions * MAINT: incremental removal of cgrappa; small formatting/type hinting updates * STY: flake8 adjustments * BLD: make build release by default
- Loading branch information
Showing
64 changed files
with
290 additions
and
377 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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
WARNING: this may contain outdated information. | ||
|
||
Windows 10 Installation | ||
======================= | ||
|
||
|
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,44 +1,60 @@ | ||
project( | ||
'pygrappa', | ||
'c', 'cpp', | ||
version: '0.26.2', | ||
license: '', | ||
meson_version: '>= 0.64.0', | ||
'c', 'cpp', 'cython', | ||
version: '0.26.3', | ||
license: 'MIT', | ||
meson_version: '>= 1.5.0', | ||
default_options: [ | ||
'buildtype=debugoptimized', | ||
'buildtype=release', | ||
'b_ndebug=if-release', | ||
'c_std=c99', | ||
'cpp_std=c++14', | ||
], | ||
) | ||
|
||
cc = meson.get_compiler('c') | ||
cpp = meson.get_compiler('cpp') | ||
cython = find_program('cython') | ||
cy = meson.get_compiler('cython') | ||
cython = find_program(cy.cmd_array()[0]) | ||
if not cy.version().version_compare('>=3.0.8') | ||
error('SciPy requires Cython >= 3.0.8') | ||
endif | ||
|
||
is_windows = host_machine.system() == 'windows' | ||
|
||
# https://mesonbuild.com/Python-module.html | ||
py_mod = import('python') | ||
py3 = py_mod.find_installation(pure: false) | ||
py3 = import('python').find_installation(pure: false) | ||
py3_dep = py3.dependency() | ||
|
||
# NumPy include directory - needed in all submodules | ||
incdir_numpy = run_command(py3, | ||
[ | ||
'-c', | ||
'import os; os.chdir(".."); import numpy; print(numpy.get_include())' | ||
], | ||
check: true | ||
[ | ||
'-c', | ||
'''import os | ||
#os.chdir(os.path.join("..", "tools")) | ||
import numpy as np | ||
try: | ||
incdir = os.path.relpath(np.get_include()) | ||
except Exception: | ||
incdir = np.get_include() | ||
print(incdir) | ||
''' | ||
], | ||
check: true | ||
).stdout().strip() | ||
message(incdir_numpy) | ||
|
||
inc_np = include_directories(incdir_numpy) | ||
numpy_nodepr_api = '-DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION' | ||
|
||
cython_args = ['-3', '--fast-fail', '--output-file', '@OUTPUT@', '--include-dir', '@BUILD_ROOT@', '@INPUT@'] | ||
if cy.version().version_compare('>=3.1.0') | ||
cython_args += ['-Xfreethreading_compatible=True'] | ||
endif | ||
cython_cplus_args = ['--cplus'] + cython_args | ||
|
||
cython_cli = find_program('pygrappa/utils/cythoner.py') | ||
|
||
cython_gen_cpp = generator(cython_cli, | ||
arguments : ['@INPUT@', '@OUTPUT@', '--cplus'], | ||
cython_gen_cpp = generator(cython, | ||
arguments : cython_cplus_args, | ||
output : '@[email protected]', | ||
depends : []) | ||
|
||
|
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
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
Oops, something went wrong.