Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Try to give example of raise in setup.py#128

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Carreau merged 1 commit intopython3statement:masterfromCarreau:setup.py
Jun 5, 2018
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions_practicalities/intro.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -284,6 +284,35 @@ Otherwise user code can fail at runtime arbitrarily later in the future, which c
be a difficult to debug and fix. Get inspiration from the message of failure at
runtime, and adapt for installation time.


Here is for a simple version of how IPython handle old versions of Python and
Pip that still try to install IPython 7.0+ on Python `< (3,4)`.

```python
if sys.version_info < (3, 4):

error = """
IPython 7.0+ supports Python 3.4 and above.
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
Python 3.3 was supported up to IPython 6.x.

See IPython `README.rst` file for more information:

https://github.com/ipython/ipython/blob/master/README.rst

Python {py} detected.

Try upgrading pip and retry.
""".format(py='.'.join([str(v) for v in sys.version_info[:3]]))

print(error, file=sys.stderr)
sys.exit(1)
```

You can look at the [full
check](https://github.com/ipython/ipython/blob/6a3e2db0c299dc05e636653c4a43d0aa756fb1c8/setup.py#L23-L58)
that attempt to detect which version of pip is in used.

## Fix dependant libraries

If you control dependant packages, Make sure to include conditional dependencies
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp