mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 11:50:21 +00:00
raise RuntimeError if not Python 2
This commit is contained in:
parent
7376e563ec
commit
c0888de394
5
setup.py
5
setup.py
@ -27,6 +27,11 @@ def read_version_py(infname):
|
|||||||
if mo:
|
if mo:
|
||||||
return mo.group(1)
|
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_PY_FILENAME = 'src/allmydata/_version.py'
|
||||||
version = read_version_py(VERSION_PY_FILENAME)
|
version = read_version_py(VERSION_PY_FILENAME)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user