Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0015e2

Browse files
authored
Merge pull request #13880 from UltimateLobster/bugfix/revert-minor-entrypoints
2 parents f1eee2c + 34da39c commit d0015e2

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

setupbase.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,15 @@ def find_entry_points():
211211
use, our own build_scripts_entrypt class below parses these and builds
212212
command line scripts.
213213
214-
Each of our entry points gets a plain name, e.g. ipython, a name
215-
suffixed with the Python major version number, e.g. ipython3, and
216-
a name suffixed with the Python major.minor version number, eg. ipython3.8.
214+
Each of our entry points gets a plain name, e.g. ipython, and a name
215+
suffixed with the Python major version number, e.g. ipython3.
217216
"""
218217
ep = [
219218
'ipython%s = IPython:start_ipython',
220219
]
221220
major_suffix = str(sys.version_info[0])
222-
minor_suffix = ".".join([str(sys.version_info[0]), str(sys.version_info[1])])
223-
return (
224-
[e % "" for e in ep]
225-
+ [e % major_suffix for e in ep]
226-
+ [e % minor_suffix for e in ep]
227-
)
221+
return [e % "" for e in ep] + [e % major_suffix for e in ep]
222+
228223

229224
class install_lib_symlink(Command):
230225
user_options = [

0 commit comments

Comments
 (0)