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

support current and future FreeBSD releases #985

Merged
merged 1 commit into from Jul 13, 2012
Merged
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
30 changes: 11 additions & 19 deletions setupext.py
Expand Up @@ -47,31 +47,23 @@
import re
import subprocess
from distutils import sysconfig, version

basedir = {
from collections import defaultdict

# basedir is a dictionary keyed by sys.platform, and on most platforms it is
# set to ['/usr/local', '/usr']. Giving this defaultdict a factory that
# returns this default removes the need to update this code every time a new
# version of freebsd comes out, for example, provided that the default basedir
# remains sufficient on that platform
basedir = defaultdict(lambda: ['/usr/local', '/usr'], {
# execptions to the ['/usr/local', '/usr'] defaults
'win32' : ['win32_static',],
'linux2-alpha' : ['/usr/local', '/usr'],
'linux2-hppa' : ['/usr/local', '/usr'],
'linux2-mips' : ['/usr/local', '/usr'],
'linux2-sparc' : ['/usr/local', '/usr'],
'linux2' : ['/usr/local', '/usr'],
'linux3' : ['/usr/local', '/usr'],
'linux' : ['/usr/local', '/usr',],
'cygwin' : ['/usr/local', '/usr',],
'darwin' : ['/usr/local/', '/usr', '/usr/X11'],
'freebsd4' : ['/usr/local', '/usr'],
'freebsd5' : ['/usr/local', '/usr'],
'freebsd6' : ['/usr/local', '/usr'],
'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
'gnukfreebsd5' : ['/usr/local', '/usr'],
'gnukfreebsd6' : ['/usr/local', '/usr'],
'gnukfreebsd7' : ['/usr/local', '/usr'],
'gnukfreebsd8' : ['/usr/local', '/usr'],
'gnu0' : ['/usr'],
'aix5' : ['/usr/local'],
}
})

import sys, os, stat
import sys

from textwrap import fill
from distutils.core import Extension
Expand Down