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

Use pip install -e spinalcordtoolbox to gain flexibility #1892

Merged
merged 4 commits into from Jul 3, 2018
Merged

Conversation

zougloub
Copy link
Contributor

@zougloub zougloub commented Jun 28, 2018

This PR brings a "solution" for #1702, whereby users can tinker with the running code in all cases:

  • Users installing sct as a package or in ~/sct_dev will not see anything change, but they may edit scripts as well as spinalcordtoolbox files in their installation.
  • Users installing sct in-place (from git) will save some installation time (because of no copy needed) and can stop going crazy (previously pip install --upgrade needed to be ran).
  • Users installing sct in development mode will not see anything change (the development mode actually becomes moot as it basically just enables to use the source spinalcordtoolbox folder even when performing package installs... it could be removed to save some installer space).

Bonus:

@zougloub zougloub changed the title install: use pip install -e spinalcordtoolbox install: use pip install -e spinalcordtoolbox go gain flexibility Jun 28, 2018
@zougloub zougloub changed the title install: use pip install -e spinalcordtoolbox go gain flexibility install: use pip install -e spinalcordtoolbox to gain flexibility Jun 28, 2018
@zougloub zougloub requested review from random1717 and jcohenadad and removed request for jcohenadad and random1717 June 29, 2018 16:12
@random1717
Copy link
Contributor

Ran tests on this, the installation worked, check_dependencies seem to be fine.

install_sct Outdated
@@ -528,7 +520,7 @@ if [ ${SCT_DEV_MODE} ]; then
pip install -e ${SCT_SOURCE}
e_status=$?
else
pip install ${SCT_SOURCE}
pip install -e ${SCT_DIR}
Copy link
Member

Choose a reason for hiding this comment

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

do we still need to distinguish dev vs. non-dev mode? i.e., maybe we don't need the -z flag anymore?

Copy link
Contributor Author

@zougloub zougloub Jun 30, 2018

Choose a reason for hiding this comment

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

If nobody uses it, it could be removed. The only justification for its existence, now, is that with it, we can perform out-of-place installs and edit files that are not in the installation folder (but I have never done that).

Copy link
Member

Choose a reason for hiding this comment

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

I think we can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK done.

Copy link
Member

@jcohenadad jcohenadad left a comment

Choose a reason for hiding this comment

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

Thanks!

@zougloub zougloub merged commit dd5b094 into master Jul 3, 2018
@zougloub zougloub deleted the cJ-install branch July 3, 2018 02:01
@jcohenadad jcohenadad added the installation category: install_sct or pip/setup.py label Jul 7, 2018
@jcohenadad jcohenadad added this to the v3.2.2 milestone Jul 7, 2018
@jcohenadad jcohenadad changed the title install: use pip install -e spinalcordtoolbox to gain flexibility Use pip install -e spinalcordtoolbox to gain flexibility Jul 7, 2018
jcohenadad pushed a commit that referenced this pull request Dec 18, 2019
install: use pip install -e spinalcordtoolbox to gain flexibility
Former-commit-id: dd5b094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation category: install_sct or pip/setup.py
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants