Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mac build process. Fixes #751 #1322

Merged
merged 5 commits into from Oct 8, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
117 changes: 0 additions & 117 deletions make.osx

This file was deleted.

20 changes: 19 additions & 1 deletion setupext.py
Expand Up @@ -57,7 +57,7 @@
basedir = defaultdict(lambda: ['/usr/local', '/usr'], {
# execptions to the ['/usr/local', '/usr'] defaults
'win32' : ['win32_static',],
'darwin' : ['/usr/local/', '/usr', '/usr/X11'],
'darwin' : ['/usr/local/', '/usr', '/usr/X11', '/opt/local'],
'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
'gnu0' : ['/usr'],
'aix5' : ['/usr/local'],
Expand Down Expand Up @@ -258,6 +258,20 @@ def get_win32_compiler():
else:
std_libs = ['stdc++', 'm']

def set_pkgconfig_path():
pkgconfig_path = sysconfig.get_config_var('LIBDIR')
if pkgconfig_path is None:
return

pkgconfig_path = os.path.join(pkgconfig_path, 'pkgconfig')
if not os.path.isdir(pkgconfig_path):
return

try:
os.environ['PKG_CONFIG_PATH'] += ':' + pkgconfig_path
except KeyError:
os.environ['PKG_CONFIG_PATH'] = pkgconfig_path

def has_pkgconfig():
if has_pkgconfig.cache is not None:
return has_pkgconfig.cache
Expand All @@ -267,6 +281,10 @@ def has_pkgconfig():
#print 'environ', os.environ['PKG_CONFIG_PATH']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may decide that it will aid debugging if this is uncommented....

status, output = getstatusoutput("pkg-config --help")
has_pkgconfig.cache = (status == 0)

# Set the PKG_CONFIG_PATH environment variable
if has_pkgconfig.cache:
set_pkgconfig_path()
return has_pkgconfig.cache
has_pkgconfig.cache = None

Expand Down
10 changes: 0 additions & 10 deletions test/README.build_slaves

This file was deleted.

2 changes: 0 additions & 2 deletions test/README.txt

This file was deleted.

32 changes: 0 additions & 32 deletions test/_buildbot_doc.sh

This file was deleted.

37 changes: 0 additions & 37 deletions test/_buildbot_install.py

This file was deleted.

23 changes: 0 additions & 23 deletions test/_buildbot_mac_sage.sh

This file was deleted.

19 changes: 0 additions & 19 deletions test/_buildbot_test.py

This file was deleted.