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

[wiki] Changes to pip install command #749

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

j0yu
Copy link
Contributor

@j0yu j0yu commented Sep 20, 2019

Installation

Update the Wiki Installation page based off some PR feedback/comments:

Notable changes

  • Updated Installation Via Pip wiki page
  • New Installations GitHub CI Workflow Installation
  • src/rez/pip.py
    • Added PIP_SPECIFIER and _check_found() for pip version checking
    • find_pip() can fully fall back to rez install's virtualenv pip if any version/Python criteria are not satisfied
  • StringIO fixes that was breaking the install process

@j0yu j0yu force-pushed the docs/pip-install branch 4 times, most recently from 0766cde to 3216bec Compare September 20, 2019 15:57
@j0yu j0yu force-pushed the docs/pip-install branch 4 times, most recently from a238328 to 93f4477 Compare November 8, 2019 00:39
@nerdvegas
Copy link
Contributor

Hey thanks, just getting to this now.

I like the idea of an extra workflow for testing all installation types (via install.py, pip with various args). But a couple of things:

  • The name. What does wiki-doctest-installation mean? I would be happy to simply call this workflow 'Installation'
  • The workflow doesn't need to be docker-based, I would drop that.
  • I would also drop any use of or references to rez-bind, I want to deprecate this. I don't think we need to do the rez-bind pip in the workflow - we can just let rez-pip pickup the system pip install.
  • I also think these tests should verify the installation, rather than just run find. Eg, after a pip install ., I would run python and test that rez imports successfully. After rez-pip install ., I would verify that rez-env rez -- python -c 'import rez' works.

Looking forward to getting this merged, it's been mentioned in the past that installation testing is missing.

j0yu pushed a commit to wwfxuk/rez that referenced this pull request Dec 18, 2019
AcademySoftwareFoundation#749 (comment)

- Renamed to Installation
- Non-docker python based
- Removed rez-bind, new rez env rez test
@j0yu j0yu force-pushed the docs/pip-install branch 18 times, most recently from 293c431 to 06ce840 Compare December 19, 2019 16:59
@j0yu
Copy link
Contributor Author

j0yu commented Feb 17, 2020

Looks like I missed out a few things during refactor/rebase.

Will need to update again from https://github.com/wwfxuk/rez/tree/pip-fallback

@j0yu
Copy link
Contributor Author

j0yu commented Apr 20, 2020

Should be good to review again @nerdvegas , I've moved the CI into #878 as it has fix for pip in there


However, these methods comes with a caveat - rez command line tools _are not
guaranteed to work correctly_ once inside a rez environment (ie after using the
`rez-env` command). The reasons are given in the next section.

Choose a reason for hiding this comment

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

Really minor: I would add that a warning is outputted to the terminal when the rez commands are used in this context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's mentioned a few lines below it but I'll tidy it up into 1 warning message

@nerdvegas
Copy link
Contributor

nerdvegas commented Apr 22, 2020

Lets get onto this once #878 is sorted.

On a related note - yeah we should add a pypi build and have that being updated automatically. But I'm also still thinking about removing the cli tools from the pip install completely. There just seems to be scope for confusion/bug reports when the tools can be run from two different types of installation.

@JeanChristopheMorinPerso
Copy link
Member

Umm ok, it seems like you pushed some commits. I'll have to find how to remove my approval...


- Add `/opt/rez/bin` to `PATH`
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should invite users to add this to their path as it could make them think they can use the rez cli.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll strongly emphasis this and put the warning right after it

commit 8d51e29
Author: Joseph Yu <[email protected]>
Date:   Mon Apr 27 15:16:37 2020 +0100

    Emphasised pip CLI warnings

commit e0d698e
Author: Joseph Yu <[email protected]>
Date:   Wed Apr 22 11:36:00 2020 +0100

    Extra links to install from GitHub

commit 13183cf
Author: Joseph Yu <[email protected]>
Date:   Wed Apr 22 10:56:48 2020 +0100

    Updated CLI in rez-env warning

commit e922172
Author: Joseph Yu <[email protected]>
Date:   Sat Apr 18 17:39:40 2020 +0100

    Just update Installation.md

    See AcademySoftwareFoundation#878 for CI check
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.

3 participants