diff options
| author | Armin Rigo <arigo@tunes.org> | 2015-05-17 10:00:14 +0200 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2015-05-17 10:00:14 +0200 |
| commit | 48d677b2578080c605794afd08736176b3c8f928 (patch) | |
| tree | 086c5f2367dfb1989cdd41aacd675afb26bfc1e2 /setup.py | |
| parent | acf8dc3c0a4a389d3e89732a9fa96cff3abace83 (diff) | |
| parent | cb8e0566f3bf8f905324c6e77a00201fc6a9ab52 (diff) | |
| download | cffi-release-0.9.tar.gz | |
hg merge defaultrelease-0.9
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -19,7 +19,7 @@ def _ask_pkg_config(resultlist, option, result_prefix='', sysroot=False): p = subprocess.Popen([pkg_config, option, 'libffi'], stdout=subprocess.PIPE) except OSError as e: - if e.errno != errno.ENOENT: + if e.errno not in [errno.ENOENT, errno.EACCES]: raise else: t = p.stdout.read().decode().strip() @@ -109,11 +109,14 @@ else: use_pkg_config() ask_supports_thread() +if 'freebsd' in sys.platform: + include_dirs.append('/usr/local/include') + if __name__ == '__main__': from setuptools import setup, Extension ext_modules = [] - if '__pypy__' not in sys.modules: + if '__pypy__' not in sys.builtin_module_names: ext_modules.append(Extension( name='_cffi_backend', include_dirs=include_dirs, @@ -162,5 +165,8 @@ Contact 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', ], ) |
