mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Make setup.py builds less sensitive to imports
This commit is contained in:
parent
5033bcfc91
commit
7635d93be7
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
VERSION=`grep "VERSION" lutris/settings.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'`
|
VERSION=`grep "__version__" lutris/__init__.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'`
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
rm tests/fixtures/pga.db -f
|
rm tests/fixtures/pga.db -f
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
"""Main Lutris package"""
|
"""Main Lutris package"""
|
||||||
|
|
||||||
|
__version__ = "0.4.23"
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
import os
|
import os
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
from lutris.util.settings import SettingsIO
|
from lutris.util.settings import SettingsIO
|
||||||
|
from lutris import __version__
|
||||||
|
|
||||||
PROJECT = "Lutris"
|
PROJECT = "Lutris"
|
||||||
VERSION = "0.4.23"
|
VERSION = __version__
|
||||||
COPYRIGHT = "(c) 2010-2018 Lutris Gaming Platform"
|
COPYRIGHT = "(c) 2010-2018 Lutris Gaming Platform"
|
||||||
AUTHORS = ["Mathieu Comandon <strycore@gmail.com>",
|
AUTHORS = ["Mathieu Comandon <strycore@gmail.com>",
|
||||||
"Pascal Reinhard (Xodetaetl) <dev@xod.me"]
|
"Pascal Reinhard (Xodetaetl) <dev@xod.me"]
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from lutris.settings import VERSION
|
from lutris import __version__ as VERSION
|
||||||
|
|
||||||
if sys.version_info < (3, 4):
|
if sys.version_info < (3, 4):
|
||||||
sys.exit('Python 3.4 is required to run Lutris')
|
sys.exit('Python 3.4 is required to run Lutris')
|
||||||
|
|
Loading…
Reference in a new issue