Skip to content
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

Fixes for VirtualBox #755

Merged
merged 42 commits into from
Aug 18, 2022
Merged

Fixes for VirtualBox #755

merged 42 commits into from
Aug 18, 2022

Conversation

paskino
Copy link
Contributor

@paskino paskino commented Aug 18, 2022

Creates the VM from the docker files.

Installs custom pip.

closes #742

@paskino paskino marked this pull request as ready for review August 18, 2022 17:19
@@ -203,7 +215,8 @@ SuperBuild(){
-DBUILD_CIL=ON\
-DCYTHON_EXECUTABLE="$CYTHON_EXECUTABLE"\
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE"\
-DBUILD_pet_rd_tools=ON
-DBUILD_pet_rd_tools=ON\
-DCYTHON_ROOT="${HOME}/.local/bin"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary I believe

@@ -79,4 +79,5 @@ bash $userHOME/devel/SIRF-SuperBuild/VirtualBox/scripts/INSTALL_python_packages.
# Therefore no browser is installed on the VM

chown -R $SIRFUSERNAME:users $userHOME
export PATH=${userHOME}/.local/bin:${PATH}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export PATH=${userHOME}/.local/bin:${PATH}

This PATH will be ignored, so why set it

SET(Cython_FOUND TRUE)
SET(Cython_Compilation_Failed FALSE)
set(CYTHON_EXECUTABLE ${cy_exe})
message(status "YAS! ${cy_exe} ${CYTHON_EXECUTABLE} ${cython_version}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably change this message :-)

export DEBIAN_FRONTEND=noninteractive
SUDO=sudo
APT_GET_INSTALL="$SUDO apt-get install -y --no-install-recommends"
${APT_GET_INSTALL} ${PYTHON}-dev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to INSTALL_...with_apt...

Comment on lines +82 to +85
# $PYTHON -m pip install $PIPOPTIONS --upgrade pip wheel setuptools
# $PYTHON -m pip install $PIPOPTIONS --only-binary=numpy,scipy,matplotlib numpy scipy matplotlib nose coverage docopt deprecation nibabel pytest tqdm
# $PYTHON -m pip install $PIPOPTIONS jupyter spyder
# $PYTHON -m pip uninstall $PIPOPTIONS -y spyder-kernels
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# $PYTHON -m pip install $PIPOPTIONS --upgrade pip wheel setuptools
# $PYTHON -m pip install $PIPOPTIONS --only-binary=numpy,scipy,matplotlib numpy scipy matplotlib nose coverage docopt deprecation nibabel pytest tqdm
# $PYTHON -m pip install $PIPOPTIONS jupyter spyder
# $PYTHON -m pip uninstall $PIPOPTIONS -y spyder-kernels

PYTHON_EXECUTABLE=$(which python3)
else
PYTHON_EXECUTABLE=$(which python)
fi
PYTHON_EXECUTABLE=/usr/bin/python3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PYTHON_EXECUTABLE=/usr/bin/python3

@KrisThielemans
Copy link
Member

so, did it work?

@KrisThielemans
Copy link
Member

doing most of these myself at the moment

This was linked to issues Aug 18, 2022
@KrisThielemans
Copy link
Member

I'm going to squash-merge this now, and then fix some things later.

@KrisThielemans KrisThielemans changed the title VM 3.3.0 Fixes for VirtualBox Aug 18, 2022
@KrisThielemans KrisThielemans merged commit 57ae12e into master Aug 18, 2022
@KrisThielemans KrisThielemans deleted the VM_3.3.0 branch August 18, 2022 20:45
@paskino
Copy link
Contributor Author

paskino commented Aug 19, 2022

so, did it work?

Yes, it did! I opened the PR only after it all worked!

@KrisThielemans
Copy link
Member

great. I'm changing it anyway 😄 PR coming later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VM: no longer install spyder VM: Install python packages fails on uninstall pexpect
2 participants