mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Fix add_site_dir on Fedora 20 x86_64.
This commit is contained in:
@ -5,7 +5,7 @@ from glob import glob
|
||||
from logging import debug, info, error
|
||||
from os import path
|
||||
import contextlib
|
||||
import distutils.spawn
|
||||
from distutils import spawn, sysconfig
|
||||
import os
|
||||
import shutil
|
||||
import site
|
||||
@ -101,7 +101,7 @@ def topdir(name):
|
||||
|
||||
@fill_in_args
|
||||
def find_executable(name):
|
||||
return (distutils.spawn.find_executable(name) or
|
||||
return (spawn.find_executable(name) or
|
||||
panic('Executable "%s" not found!', name))
|
||||
|
||||
|
||||
@ -292,8 +292,9 @@ def unarc(name):
|
||||
|
||||
@fill_in_args
|
||||
def add_site_dir(dirname):
|
||||
dirname = path.join(dirname, 'lib', 'python%d.%d' % sys.version_info[:2],
|
||||
'site-packages')
|
||||
prefix = sysconfig.EXEC_PREFIX
|
||||
destlib = sysconfig.get_config_var('DESTLIB')
|
||||
dirname = path.join(dirname, destlib[len(prefix) + 1:], 'site-packages')
|
||||
info('adding "%s" to python site dirs', topdir(dirname))
|
||||
site.addsitedir(dirname)
|
||||
|
||||
|
||||
@ -281,12 +281,10 @@ def build():
|
||||
unpack('{automake}')
|
||||
|
||||
py_ver = 'python%d.%d' % (sys.version_info.major, sys.version_info.minor)
|
||||
with env(CC=CC, CXX=CXX):
|
||||
require_header([path.join(py_ver, 'Python.h')],
|
||||
lang='c', errmsg='python-dev package missing')
|
||||
|
||||
unpack('python-lha', work_dir='{build}')
|
||||
python_setup('python-lha')
|
||||
require_header([path.join(py_ver, 'Python.h')],
|
||||
lang='c', errmsg='python-dev package missing')
|
||||
unpack('python-lha', work_dir='{build}')
|
||||
python_setup('python-lha')
|
||||
|
||||
unpack('{m4}')
|
||||
configure('{m4}', '--prefix={host}')
|
||||
|
||||
Reference in New Issue
Block a user