From a593a261b24f04055a1ae249067a064996e6cdeb Mon Sep 17 00:00:00 2001 From: Michal Halenka Date: Wed, 30 Dec 2015 00:26:12 +0100 Subject: [PATCH] Enforces Python2 usage Should fix #38 --- .travis.yml | 4 ++-- README.rst | 4 ++-- bin/ansigenome | 2 +- setup.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index c025ac2..b55c7d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,10 @@ language: "python" python: "2.7" before_install: - - "pip install setuptools flake8" + - "pip2 install setuptools flake8" install: - - "python setup.py develop" + - "python2 setup.py develop" - "git config user.email 'foo@bar.com'" - "git config user.name 'Foo Bar'" diff --git a/README.rst b/README.rst index c6494d1..2b24d47 100644 --- a/README.rst +++ b/README.rst @@ -166,13 +166,13 @@ If you have Ansible installed then you already have all of the dependencies you # Pick an installation method that agrees with you. - pip install ansigenome + pip2 install ansigenome easy_install ansigenome # If you want to live on the edge... git clone https://github.com/nickjj/ansigenome - cd ansigenome ; sudo python setup.py develop + cd ansigenome ; sudo python2 setup.py develop Quick start diff --git a/bin/ansigenome b/bin/ansigenome index 458fca6..eccf3e5 100755 --- a/bin/ansigenome +++ b/bin/ansigenome @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import os import sys diff --git a/setup.py b/setup.py index c8c6eed..f139d3e 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import sys @@ -7,7 +7,7 @@ except ImportError: print "Ansigenome needs setuptools in order to build. " + \ "Install it using your package manager " + \ - "(usually python-setuptools) or via pip (pip install setuptools)." + "(usually python-setuptools) or via pip (pip2 install setuptools)." sys.exit(1) setup(name="ansigenome",