diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-07-09 18:28:19 +0800 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-07-09 18:28:19 +0800 |
| commit | af2d42e1748eff3bd8627faa4f21fccd4998bb63 (patch) | |
| tree | 3709000d6275c03ce173304ecd5275a264a77a99 /databases/py-gdbm/files/setup.py | |
| parent | textproc/p5-Lingua-EN-Sentence: Update to 0.34 (diff) | |
databases/py-gdbm: Strip shared library
- Clean up
- Bump PORTREVISION for package change
Diffstat (limited to '')
| -rw-r--r-- | databases/py-gdbm/files/setup.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/databases/py-gdbm/files/setup.py b/databases/py-gdbm/files/setup.py index 9acb68c35da1..0a947466d03e 100644 --- a/databases/py-gdbm/files/setup.py +++ b/databases/py-gdbm/files/setup.py @@ -9,10 +9,9 @@ try: from distutils.command.install import install from distutils.core import setup, Extension except: - raise SystemExit, "Distutils problem" + raise SystemExit("Distutils problem") -install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd, - install.sub_commands) +install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include"] @@ -22,7 +21,7 @@ libs = ["gdbm"] setup(name = "gdbm", description = "GDBM Extension to Python", - ext_modules = [Extension('gdbm', ['gdbmmodule.c'], + ext_modules = [Extension('_gdbm', ['_gdbmmodule.c'], include_dirs = inc_dirs, libraries = libs, library_dirs = lib_dirs)] |
