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

Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit 662d0d9

Browse files
author
mpratt14
authored
setup.py: use the routine modern method for installing setuptools
My suggestion for fixing the deprecated method for installing or updating setuptools using ez_setup.py Also ensures that both pip and setuptools are 'bootstrapped' to the python environment, which does not always happen on a fresh install in Windows. Fixes #96 This can be made more robust by detecting if pip or setuptools is installed with `pip --version`, etc...
1 parent ede3d7d commit 662d0d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ensurepip
2+
3+
#try the following if ensurepip is not sufficient
4+
#ensurepip --upgrade
5+
#pip install --upgrade pip setuptools
6+
17
try:
28
# Try using ez_setup to install setuptools if not already installed.
39
from ez_setup import use_setuptools

0 commit comments

Comments
 (0)