-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add install script for all clients #931
Conversation
Maybe it should be renamed to something like |
related: #491 |
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.
Move to dev_tools
install-dev.sh
Outdated
@@ -0,0 +1,3 @@ | |||
#!/usr/bin/env sh | |||
cd $(dirname $0) | |||
pip install -e $(ls ./*/pyproject.toml | sed 's/\/pyproject.toml/\[dev\]/') |
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.
two notes:
- the
-e
flag has to be passed before each package you want to be editable - checks-superstaq doesn't have a [dev] option
i think it would be better to just hard-code all the client names to avoid any ambiguity, e.g.:
pip install -e $(ls ./*/pyproject.toml | sed 's/\/pyproject.toml/\[dev\]/') | |
pip install -e ./checks-superstaq -e ./general-superstaq[dev] -e ./qiskit-superstaq[dev] -e ./cirq-superstaq[dev] -e ./superstaq-benchmarks[dev] |
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.
This gives me an error:
$ ./dev_tools/install.sh
cd ./dev_tools/../
ERROR: ./superstaq-benchmarks[dev] is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
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 think it should go away with ./superstaq-benchmarks[dev]
-> ./supermarq-benchmarks[dev]
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.
Oh right haha. Works now.
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.
lol my bad
Co-authored-by: richrines1 <[email protected]>
dev_tools/install.sh
Outdated
echo cd $(dirname $0)/../ | ||
pip install -e ./checks-superstaq -e ./general-superstaq[dev] -e ./qiskit-superstaq[dev] -e ./cirq-superstaq[dev] -e ./supermarq-benchmarks[dev] |
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.
echo cd $(dirname $0)/../ | |
pip install -e ./checks-superstaq -e ./general-superstaq[dev] -e ./qiskit-superstaq[dev] -e ./cirq-superstaq[dev] -e ./supermarq-benchmarks[dev] | |
cd $(dirname $0)/.. | |
pip install -e ./checks-superstaq -e ./general-superstaq[dev] -e ./qiskit-superstaq[dev] -e ./cirq-superstaq[dev] -e ./supermarq-benchmarks[dev] |
or
echo cd $(dirname $0)/../ | |
pip install -e ./checks-superstaq -e ./general-superstaq[dev] -e ./qiskit-superstaq[dev] -e ./cirq-superstaq[dev] -e ./supermarq-benchmarks[dev] | |
cd $(dirname $0) | |
pip install -e ../checks-superstaq -e ../general-superstaq[dev] -e ../qiskit-superstaq[dev] -e ../cirq-superstaq[dev] -e ../supermarq-benchmarks[dev] |
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.
Good catch lol
Co-authored-by: richrines1 <[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.
lgtm!
Lets me (or anyone else) just run
./install.sh
rather than manually runningpip install -e '.[dev]'
in each of the client projects.