Skip to content
Snippets Groups Projects
Commit f5a07c90 authored by Xavier Claessens's avatar Xavier Claessens
Browse files

TMP

parent 94b2776e
No related branches found
No related tags found
Loading
......@@ -19,6 +19,7 @@
import os
import tempfile
import shutil
import sys
from cerbero.bootstrap import BootstrapperBase
from cerbero.bootstrap.bootstrapper import register_bootstrapper
......@@ -104,23 +105,25 @@ class WindowsBootstrapper(BootstrapperBase):
tmp_dir = tempfile.mkdtemp()
shell.call("git clone %s" % url, tmp_dir)
python_headers = os.path.join(self.prefix, 'include', 'Python3.6')
version = '%s.%s' % (sys.version_info[0], sys.version_info[1])
python_headers = os.path.join(self.prefix, 'include', 'Python%s' % version)
python_headers = to_unixpath(os.path.abspath(python_headers))
shell.call('mkdir -p %s' % python_headers)
python_libs = os.path.join(self.prefix, 'lib')
python_libs = to_unixpath(python_libs)
version = version.replace('.', '')
temp = to_unixpath(os.path.abspath(tmp_dir))
shell.call('cp -f %s/windows-external-sdk/python36/%s/include/* %s' %
(temp, self.version, python_headers))
shell.call('cp -f %s/windows-external-sdk/python36/%s/lib/* %s' %
(temp, self.version, python_libs))
shell.call('cp -f %s/windows-external-sdk/python%s/%s/include/* %s' %
(temp, version, self.version, python_headers))
shell.call('cp -f %s/windows-external-sdk/python%s/%s/lib/* %s' %
(temp, version, self.version, python_libs))
try:
os.remove('%s/lib/python.dll' % self.prefix)
except:
pass
shell.call('ln -s python36.dll python.dll', '%s/lib' % self.prefix)
shell.call('ln -s python%s.dll python.dll' % version, '%s/lib' % self.prefix)
shutil.rmtree(tmp_dir)
def install_mingwget_deps(self):
......
......@@ -4,6 +4,7 @@
# PLEASE, DO NOT EDIT THIS FILE
import os
import sys
from cerbero.config import Architecture, Platform
# We don't want anything from mingw or msys detected in configure and
......@@ -77,12 +78,13 @@ os.environ['ac_cv_lib_bz2_BZ2_bzlibVersion'] = 'yes'
os.environ['ac_cv_c_attribute_aligned'] = '64'
# Python
os.environ['am_cv_python_version'] = '3.6'
_version = '%s.%s' % (sys.version_info[0], sys.version_info[1])
os.environ['am_cv_python_version'] = _version
os.environ['am_cv_python_platform'] = 'win32'
os.environ['am_cv_python_pyexecdir'] = '%s/%s/site-packages' % (prefix, py_prefix)
os.environ['am_cv_python_pythondir'] = '%s/%s/site-packages' % (prefix, py_prefix)
os.environ['PYTHON_INCLUDES'] = '-I%s/include/Python3.6 -I%s/include/Python3.6' % (toolchain_prefix, toolchain_prefix)
os.environ['PYTHON_LIBS'] = '-lpython36 -shrext .pyd'
os.environ['PYTHON_INCLUDES'] = '-I%s/include/Python%s' % (toolchain_prefix, _version)
os.environ['PYTHON_LIBS'] = '-lpython%s -shrext .pyd' % (_version.replace('.', ''))
# DirectX and DirectSound
os.environ['DIRECTSOUND_CFLAGS'] = '-I%s/%s/include/directx' % (toolchain_prefix, host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment