kuba / simp_le

Simple Let's Encrypt Client
GNU General Public License v3.0
886 stars 59 forks source link

bootstrap installs python2 and python3 on debian #79

Open trunneml opened 8 years ago

trunneml commented 8 years ago

Running the bootstrap script on debian installs python2 (python depends on python2.7) and python3 (virtualenv depends on python3). What is the prefered python version for simp_le?

kuba commented 8 years ago

simp_le is meant to work exactly the same on py2 and py3 - if you have an option I would suggest running py3

trunneml commented 8 years ago

I know that simp_le runs under py2 and py3. But is that a reason to install Python2 and Python3 on debian systems using the ./bootstrap.sh script in this repository?

kuba commented 8 years ago

bootstrap.sh installs only python and python-dev; I'm not sure what you mean

trunneml commented 8 years ago

@kuba it installs python, python-dev and depending on the distro version virtualenv or python-virtualenv. On the latest debian and ubuntu python installs Python 2.7. virtualenv on the otherside is a Python 3 package and has a dependency on python3 (https://packages.debian.org/jessie/virtualenv). When you install virtualenvyou also installing python3. In the end both Python versions are installed, so could you please reopen the ticket.

padawan commented 7 years ago

I noted the same behavior and wondered why it had to get both versions. As illustration, here's the list of packages it installed on a Debian 8 server:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version.
ca-certificates set to manually installed.
gcc is already the newest version.
python is already the newest version.
python set to manually installed.
The following extra packages will be installed:
  dh-python libmpdec2 libpython-dev libpython2.7 libpython2.7-dev libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib python-chardet-whl python-colorama-whl
  python-distlib-whl python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl python2.7-dev python3 python3-minimal
  python3-pkg-resources python3-virtualenv python3.4 python3.4-minimal
Suggested packages:
  python3-doc python3-tk python3-venv python3-setuptools python3.4-venv python3.4-doc binfmt-support
Recommended packages:
  libssl-doc
The following NEW packages will be installed:
  dh-python libffi-dev libmpdec2 libpython-dev libpython2.7 libpython2.7-dev libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib libssl-dev python-chardet-whl
  python-colorama-whl python-dev python-distlib-whl python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl python2.7-dev
  python3 python3-minimal python3-pkg-resources python3-virtualenv python3.4 python3.4-minimal virtualenv
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.3 MB of archives.
After this operation, 62.2 MB of additional disk space will be used.