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

Skip to content

Commit dc21db3

Browse files
committed
"make install" is now an alias for "make altinstall", to prevent
accidentally overwriting a Python 2.x installation. Use "make fullinstall" to force Python 3.0 to be installed as "python".
1 parent fac49f6 commit dc21db3

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Makefile.pre.in

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,15 @@ memtest: all platform
687687
$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
688688

689689
# Install everything
690-
install: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall @FRAMEWORKINSTALLLAST@
690+
fullinstall: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall @FRAMEWORKINSTALLLAST@
691+
692+
# "make install" is an alias for "make altinstall" since we never want to
693+
# overwrite Python 2.x.
694+
install: altinstall
695+
echo "* Note: not installed as 'python'."
696+
echo "* Use 'make fullinstall' to install as 'python'."
697+
echo "* However, 'make fulinstall' is discouraged,"
698+
echo "* as it will clobber your Python 2.x installation."
691699

692700
# Install almost everything without disturbing previous versions
693701
altinstall: @FRAMEWORKALTINSTALLFIRST@ altbininstall libinstall inclinstall libainstall \

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Library
3232
Build
3333
-----
3434

35+
- "make install" is now an alias for "make altinstall", to prevent
36+
accidentally overwriting a Python 2.x installation.
37+
Use "make fullinstall" to force Python 3.0 to be installed as
38+
"python".
39+
3540
- Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when
3641
gcc is used as compiler.
3742

0 commit comments

Comments
 (0)