Skip to content

Setup for Python 2/3#4473

Merged
minrk merged 3 commits intoipython:masterfrom
takluyver:setup23
Nov 5, 2013
Merged

Setup for Python 2/3#4473
minrk merged 3 commits intoipython:masterfrom
takluyver:setup23

Conversation

@takluyver
Copy link
Copy Markdown
Member

This will almost certainly still have some problems, but it's at least working for me now.

These changes:

  • Give us scripts called ipython and (ipython2 or ipython3) for any installation. (and likewise for each of iptest, ipcontroller, etc.)
  • Add a new setup.py symlink target, to use instead of develop, which installs scripts and symlinks the library into site-packages, without using setuptools.
  • Removes the static script entry points - all our entry points are now automatically generated.

Scripts named ipython and ipython[23], etc.

Neither distutils nor setuptools made this easy.
setupbase.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Want to add a comment that thoses script are autogenerated by setup.py ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seems sensible. Done.

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Nov 5, 2013

+1 :-)

minrk added a commit that referenced this pull request Nov 5, 2013
update script generation in setup.py

These changes:
- Give us scripts called `ipython` and (`ipython2` or `ipython3`) for any installation. (and likewise for each of iptest, ipcontroller, etc.)
- Add a new `setup.py symlink` target, to use instead of `develop`, which installs scripts and symlinks the library into site-packages, without using setuptools.
- Removes the static script entry points - all our entry points are now automatically generated.
@minrk minrk merged commit b908251 into ipython:master Nov 5, 2013
@minrk
Copy link
Copy Markdown
Member

minrk commented Nov 5, 2013

Seems to work as expected here, merging.

@takluyver takluyver mentioned this pull request Nov 6, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
update script generation in setup.py

These changes:
- Give us scripts called `ipython` and (`ipython2` or `ipython3`) for any installation. (and likewise for each of iptest, ipcontroller, etc.)
- Add a new `setup.py symlink` target, to use instead of `develop`, which installs scripts and symlinks the library into site-packages, without using setuptools.
- Removes the static script entry points - all our entry points are now automatically generated.
Carreau added a commit that referenced this pull request Feb 16, 2024
Apparently introduced in #4473 (over 10 years ago), undocumented.
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