mirror of https://github.com/kivy/kivy.git
setup: dont import os.uname by default, Windows platform doesnt have it.
This commit is contained in:
parent
d80741b1a5
commit
84945cd816
5
setup.py
5
setup.py
|
@ -6,8 +6,9 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
import os
|
||||||
from os.path import join, dirname, sep, exists, basename
|
from os.path import join, dirname, sep, exists, basename
|
||||||
from os import walk, environ, uname
|
from os import walk, environ
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -265,7 +266,7 @@ def determine_base_flags():
|
||||||
flags['extra_compile_args'] += ['-isysroot', sysroot]
|
flags['extra_compile_args'] += ['-isysroot', sysroot]
|
||||||
flags['extra_link_args'] += ['-isysroot', sysroot]
|
flags['extra_link_args'] += ['-isysroot', sysroot]
|
||||||
elif platform == 'darwin':
|
elif platform == 'darwin':
|
||||||
v = uname()
|
v = os.uname()
|
||||||
if v[2] >= '13.0.0':
|
if v[2] >= '13.0.0':
|
||||||
# use xcode-select to search on the right Xcode path
|
# use xcode-select to search on the right Xcode path
|
||||||
# XXX use the best SDK available instead of a specific one
|
# XXX use the best SDK available instead of a specific one
|
||||||
|
|
Loading…
Reference in New Issue