|
|
f5c6d44 |
#!/usr/bin/python
|
|
|
f5c6d44 |
# -*- coding: utf-8 -*-
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
import os
|
|
|
023ad1b |
import glob
|
|
|
023ad1b |
|
|
|
f5c6d44 |
import distutils.command.sdist
|
|
|
f5c6d44 |
from setuptools import setup
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
# override default tarball format with bzip2
|
|
|
f5c6d44 |
distutils.command.sdist.sdist.default_format = {"posix": "bztar"}
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
# recursively scan for python modules to be included
|
|
|
f5c6d44 |
package_root_dirs = ["pungi"]
|
|
|
f5c6d44 |
packages = set()
|
|
|
f5c6d44 |
for package_root_dir in package_root_dirs:
|
|
|
f5c6d44 |
for root, dirs, files in os.walk(package_root_dir):
|
|
|
f5c6d44 |
if "__init__.py" in files:
|
|
|
f5c6d44 |
packages.add(root.replace("/", "."))
|
|
|
f5c6d44 |
packages = sorted(packages)
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
setup(
|
|
|
f5c6d44 |
name = "pungi",
|
|
|
f5c6d44 |
version = "4.0", # make sure it matches with pungi.__version__
|
|
|
f5c6d44 |
description = "Distribution compose tool",
|
|
|
f5c6d44 |
url = "http://fedorahosted.org/pungi",
|
|
|
f5c6d44 |
author = "Dennis Gilmore",
|
|
|
f5c6d44 |
author_email = "dgilmore@fedoraproject.org",
|
|
|
f5c6d44 |
license = "GPLv2",
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
packages = packages,
|
|
|
f5c6d44 |
scripts = [
|
|
|
dfd0cc9 |
'bin/pungi',
|
|
|
a3158ec |
'bin/pungi-koji',
|
|
Adam Miller |
e71f802 |
'bin/comps_filter',
|
|
|
f5c6d44 |
],
|
|
|
f5c6d44 |
data_files = [
|
|
|
30c0f35 |
('/usr/share/pungi', glob.glob('share/*.xsl')),
|
|
|
30c0f35 |
('/usr/share/pungi', glob.glob('share/*.ks')),
|
|
|
eba5a8b |
('/usr/share/pungi', glob.glob('share/*.dtd')),
|
|
|
30c0f35 |
('/usr/share/pungi/multilib', glob.glob('share/multilib/*')),
|
|
|
f5c6d44 |
]
|
|
|
30c0f35 |
)
|