Skip to content

Commit

Permalink
[MOD] - updated numpy version in requirements.txt to <2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lpossner committed Jul 16, 2024
1 parent 642ac6d commit 8b13d04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions build_pygpc_extensions_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@


def build_pygpc_extensions_cuda():
ext_prefix = sysconfig.get_config_var('EXT_SUFFIX').split('.')
ext_prefix = sysconfig.get_config_var("EXT_SUFFIX").split(".")
ext_prefix = ext_prefix[1]
configure_command = ['cmake', '-B'+os.path.join('build', 'pygpc_extensions_cuda'),
'-H'+os.path.join('pckg','pygpc_extensions_cuda'),
'-DPROJECT_ROOT_PATH='+os.getcwd(),
'-DNumPy_INCLUDE_DIRS='+np.get_include(),
'-DEXT_PREFIX='+ext_prefix]
configure_command = [
"cmake",
"-B" + os.path.join("build", "pygpc_extensions_cuda"),
"-H" + os.path.join("pckg", "pygpc_extensions_cuda"),
"-DPROJECT_ROOT_PATH=" + os.getcwd(),
"-DNumPy_INCLUDE_DIRS=" + np.get_include(),
"-DEXT_PREFIX=" + ext_prefix,
]
subprocess.run(configure_command)
build_commad = ['cmake', '--build', os.path.join('build', 'pygpc_extensions_cuda')]
build_commad = ["cmake", "--build", os.path.join("build", "pygpc_extensions_cuda")]
print(build_commad)
subprocess.run(build_commad)


if __name__ == '__main__':
if __name__ == "__main__":
build_pygpc_extensions_cuda()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scipy>=1.10.0
numpy>=1.24.1
numpy>=1.24.1,<2.0.0
fastmat>=0.2.post0
scikit-learn>=1.2.0
h5py>=3.7.0
Expand Down

0 comments on commit 8b13d04

Please sign in to comment.