-
Notifications
You must be signed in to change notification settings - Fork 18
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
expose python strategy #109
Conversation
hi. I didn't check this yet, but quite a few extra changes here related to Docker etc. intentional? |
yes, it's some fairly no-brainer docker tidy up, would probably merge that in separately first (#110 ) |
011a83a
to
f4ccbf6
Compare
@paskino please note my comment in the description about using setup.py to call
|
Casper is setup.py already calling cmake to build sirf? |
No, but I could make it that way. Right now the procedure is:
|
Maybe that's not necessary then. conda recipe currently covers 1 and 2. If we split 3 in: 3.a cmake && make I guess I could just merge this branch in the conda branch adding 3.b |
I don't see the benefit of splitting into 3a and 3b. "make" already calls I also don't think letting (obviously, in the conda script you wouldn't want to call |
The conda built SIRF works, except #111 |
btw, docker image sizes for different python sources:
|
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.
I feel that the SIRF specific stuff (i.e. 90%) should be in the SIRF repo itself, but not sure if that'd lead to a ton of duplication.
If we need to keep it here, it definitely needs to be in a separate file, presumably called from External_SIRF.cmake
SuperBuild/setup.py.in
Outdated
@@ -0,0 +1,40 @@ | |||
#!/usr/bin/env python |
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.
is this ok? shouldn't it use PYTHONINTERP?
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.
should be fine, mainly just for correct syntax highlighting despite the .in
extension - it's never executed directly (always ${PYTHON_EXECUTABLE} setup.py
, not ./setup.py
) so is ignored anyway
- related to SyneRBI/SIRF#160 - fixes (partially) #107
most of this (see original description below) is migrated to SyneRBI/SIRF#163
new description
PYTHON_STRATEGY
(CONDA|SETUP_PY|PYTHONPATH)
cmake -DSIRF_TAG=setup_py -DPYTHON_STRATEGY=SETUP_PY
original description
setup.py
sirf
p(Gadgetron|STIR|Utilities)
tosirf.p(Gadgetron|STIR|Utilities)
for backward-compatibilitypip install ->setup.pysirf
onPyPI
before anyone else does (https://pypi.org/project/sirf/)old
INSTALL/
python/
*.(py|so)
new
INSTALL/
python/
setup.py
sirf/
__init__.py
*.(py|so)
p*/__init__.py
future
sirf
onconda-forge
setup.py:build_ext
to callcmake
@casperdclcmake
call inconda
cmake
build args tosetup.py
(pretty easy)