-
Notifications
You must be signed in to change notification settings - Fork 34
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
Hopefully fixes builds on 3.12. #70
Changes from 8 commits
352fe5f
752a8d6
7225748
ae09b24
a8dc9ee
73946fb
951ce78
a7d0868
5895b15
6672832
b5a3641
e88be4f
c2f36be
ae00033
d29c051
7601bc6
3fdab57
321755c
16f1b02
fc83dcc
97f26c9
85f1079
5ab81ab
c2685c4
fc28677
88264c3
a7690a1
f90a6a3
6cec24a
d7099ff
3fd0561
fb8c217
f07a83c
33b3145
577cfa2
82644d1
fb5dcc8
41481de
5c3d16c
72140e5
580477d
ef655a2
ee9017b
538b995
a859327
e59e496
bcacd76
f23e144
6d70a6b
4b081e6
b893196
12d45d4
f7e2e98
a0fb593
6036646
9b7bbc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "scs"] | ||
path = scs | ||
path = scs_source | ||
url = https://github.com/cvxgrp/scs.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
project('scs', 'c') | ||
|
||
py = import('python').find_installation(pure: false) | ||
|
||
# This uses the path as is, and avoids running the interpreter. | ||
incdir_numpy = run_command(py, | ||
[ | ||
'-c', | ||
'''import os | ||
import numpy as np | ||
incdir = np.get_include() | ||
print(incdir) | ||
''' | ||
], | ||
check: true | ||
).stdout().strip() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the one annoying thing you have to do indeed - I will get around to replacing all this with a simple For now, I'd recommend to include the That will ensure things work fine with an in-tree virtual environment (so There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I guess fixed (there are more try/except there that I don't understand). |
||
|
||
incdir = include_directories('scs_source/include') | ||
pyincdir = include_directories('src') | ||
linsysinc = include_directories('scs_source/linsys') | ||
directinc = include_directories('scs_source/linsys/cpu/direct') | ||
qdldlinc = include_directories('scs_source/linsys/external/qdldl') | ||
amdinc = include_directories('scs_source/linsys/external/amd') | ||
|
||
|
||
# meson doesn't support wildcards | ||
# https://mesonbuild.com/FAQ.html#why-cant-i-specify-target-files-with-a-wildcard | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably can be cleaned up as well now? |
||
|
||
py.extension_module( | ||
'_scs_direct', | ||
enzbus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
'src/scspy.c', | ||
'scs_source/linsys/cpu/direct/private.c', | ||
|
||
# scs_source/src: | ||
'scs_source/src/aa.c', | ||
'scs_source/src/cones.c', | ||
'scs_source/src/ctrlc.c', | ||
'scs_source/src/exp_cone.c', | ||
'scs_source/src/linalg.c', | ||
'scs_source/src/normalize.c', | ||
'scs_source/src/rw.c', | ||
'scs_source/src/scs_version.c', | ||
'scs_source/src/scs.c', | ||
'scs_source/src/util.c', | ||
|
||
# scs_source/linsys: | ||
'scs_source/linsys/scs_matrix.c', | ||
'scs_source/linsys/csparse.c', | ||
|
||
# scs_source/linsys/external/qdldl: | ||
'scs_source/linsys/external/qdldl/qdldl.c', | ||
|
||
# scs_source/linsys/external/amd: | ||
'scs_source/linsys/external/amd/amd_1.c', | ||
'scs_source/linsys/external/amd/amd_2.c', | ||
'scs_source/linsys/external/amd/amd_aat.c', | ||
'scs_source/linsys/external/amd/amd_control.c', | ||
'scs_source/linsys/external/amd/amd_defaults.c', | ||
'scs_source/linsys/external/amd/amd_dump.c', | ||
'scs_source/linsys/external/amd/amd_global.c', | ||
'scs_source/linsys/external/amd/amd_info.c', | ||
'scs_source/linsys/external/amd/amd_order.c', | ||
'scs_source/linsys/external/amd/amd_post_tree.c', | ||
'scs_source/linsys/external/amd/amd_postorder.c', | ||
'scs_source/linsys/external/amd/amd_preprocess.c', | ||
'scs_source/linsys/external/amd/amd_valid.c', | ||
'scs_source/linsys/external/amd/SuiteSparse_config.c', | ||
|
||
include_directories : [ | ||
incdir, pyincdir, linsysinc, directinc, qdldlinc, amdinc, incdir_numpy], | ||
install: true, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools<65.6.0", | ||
"wheel", | ||
"oldest-supported-numpy", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = 'mesonpy' | ||
requires = ['meson-python', 'numpy'] | ||
|
||
[project] | ||
name = 'scs' | ||
version = "3.2.3" | ||
enzbus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
description = 'Splitting conic solver' | ||
readme = 'README.md' | ||
requires-python = '>=3.8' | ||
license = {file = 'LICENSE'} | ||
authors = [ | ||
{name = "Brendan O'Donoghue", email = "[email protected]"}, | ||
] |
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.
Minor: this comment is a left-over and doesn't apply, so best to clean it up.