Skip to content

Commit

Permalink
Removed the usage of minor-version entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimateLobster authored and Carreau committed Jan 3, 2023
1 parent f1eee2c commit 0520f55
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,16 @@ def find_entry_points():
use, our own build_scripts_entrypt class below parses these and builds
command line scripts.
Each of our entry points gets a plain name, e.g. ipython, a name
suffixed with the Python major version number, e.g. ipython3, and
a name suffixed with the Python major.minor version number, eg. ipython3.8.
Each of our entry points gets a plain name, e.g. ipython, and a name
suffixed with the Python major version number, e.g. ipython3.
"""
ep = [
'ipython%s = IPython:start_ipython',
]
major_suffix = str(sys.version_info[0])
minor_suffix = ".".join([str(sys.version_info[0]), str(sys.version_info[1])])
return (
[e % "" for e in ep]
+ [e % major_suffix for e in ep]
+ [e % minor_suffix for e in ep]
)

class install_lib_symlink(Command):
Expand Down

0 comments on commit 0520f55

Please sign in to comment.