diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-05-18 18:04:11 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-09 12:26:41 +0300 |
commit | f45567c2da6abb4562d42907bf9f614174baa3ff (patch) | |
tree | 5f444815ae1ed47cfa614596c716a9baccfe3a68 /python/setup.py.in | |
parent | 987bd509c0686535e6fd80e813b22746e53abfa8 (diff) | |
download | librpm-tizen-f45567c2da6abb4562d42907bf9f614174baa3ff.tar.gz librpm-tizen-f45567c2da6abb4562d42907bf9f614174baa3ff.tar.bz2 librpm-tizen-f45567c2da6abb4562d42907bf9f614174baa3ff.zip |
Make python module name configurable
Diffstat (limited to 'python/setup.py.in')
-rw-r--r-- | python/setup.py.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/setup.py.in b/python/setup.py.in index 619b0ac73..14be973a3 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -20,7 +20,7 @@ def mksources(names): cflags = ['-std=c99'] -rpmmod = Extension('rpm._rpm', +rpmmod = Extension('@PYTHON_MODULENAME@._rpm', sources = mksources([ 'header', 'rpmds', 'rpmfd', 'rpmfi', 'rpmii', 'rpmkeyring', 'rpmmacro', 'rpmmi', 'rpmps', @@ -31,21 +31,21 @@ rpmmod = Extension('rpm._rpm', extra_compile_args = cflags ) -rpmbuild_mod = Extension('rpm._rpmb', +rpmbuild_mod = Extension('@PYTHON_MODULENAME@._rpmb', sources = mksources(['rpmbmodule', 'spec']), include_dirs = pkgconfig('--cflags'), libraries = pkgconfig('--libs') + ['rpmbuild'], extra_compile_args = cflags ) -rpmsign_mod = Extension('rpm._rpms', +rpmsign_mod = Extension('@PYTHON_MODULENAME@._rpms', sources = mksources(['rpmbmodule']), include_dirs = pkgconfig('--cflags'), libraries = pkgconfig('--libs') + ['rpmsign'], extra_compile_args = cflags ) -setup(name='@PACKAGE_NAME@-python', +setup(name='@PACKAGE_NAME@', version='@VERSION@', description='Python bindings for @PACKAGE_NAME@', maintainer_email='@PACKAGE_BUGREPORT@', |