mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
Merge pull request #414 from tpltnt/enforce-py2-setup
enforce Python 2.7 during installation
This commit is contained in:
commit
a5095bbce5
5
setup.py
5
setup.py
@ -27,6 +27,11 @@ def read_version_py(infname):
|
||||
if mo:
|
||||
return mo.group(1)
|
||||
|
||||
# make sure we have a proper version of python
|
||||
if 2 != sys.version_info.major:
|
||||
raise RuntimeError("Python version 2 is required")
|
||||
|
||||
# source all the other data
|
||||
VERSION_PY_FILENAME = 'src/allmydata/_version.py'
|
||||
version = read_version_py(VERSION_PY_FILENAME)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user