-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
fix pip install #1686
fix pip install #1686
Conversation
Before a pull request is accepted, it must meet the following criteria:
|
Codecov Report
@@ Coverage Diff @@
## master #1686 +/- ##
==========================================
+ Coverage 61.29% 61.86% +0.57%
==========================================
Files 63 62 -1
Lines 5792 5738 -54
==========================================
Hits 3550 3550
+ Misses 2242 2188 -54
Continue to review full report at Codecov.
|
There is no |
Yes. At the header of that file, you can see |
@@ -1,13 +1,25 @@ | |||
#!/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.
I don't get it how this file is related to pip install?
It seems like it makes tardis runnable via CLI - is that so?
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.
Some context:
We had two scripts
folder before APE 17 migration:
- the
scripts/
(containing just thetardis
UNIX script) - and
tardis/scripts
(Python entry points)
In #1674 made some changes to the tardis
script to use it as an entry point. But seems that worked for python setup.py develop
, but didn't worked for pip install .
(required by the conda-forge
packaging system, see here).
I reverted those changes plus some minor changes to make the script tidier.
You can try the result of pip install .
on this branch and compare it with master
.
Description
Fixes the
pip install ...
command. Some examples:pip install git+https://github.com/tardis-sn/tardis.git
pip install .
(equivalent topython setup.py install
)pip install -e .
(equivalent topython setup.py develop
)To achieve this I needed to undo some changes made in #1674 related to the
tardis
script. Now that script is considered a pure Python script instead of an entry point.Motivation and context
We had two
scripts
folder before APE 17 migration:scripts/
(containing just thetardis
UNIX script)tardis/scripts
(Python entry points)In #1674 made some changes to the
tardis
script to use it as an entry point. But seems that worked forpython setup.py develop
, but didn't worked forpip install .
(required by theconda-forge
packaging system, see here).I reverted those changes plus some minor changes to make the script tidier.
You can try the result of
pip install .
on this branch and compare it withmaster
.Fixes #1211
How has this been tested?
Locally.
Examples
Type of change
Checklist