2015-02-05 15:56:24 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
2006-11-08 21:34:59 +00:00
|
|
|
import glob
|
|
|
|
|
2015-02-05 15:56:24 +00:00
|
|
|
import distutils.command.sdist
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
|
|
# override default tarball format with bzip2
|
|
|
|
distutils.command.sdist.sdist.default_format = {"posix": "bztar"}
|
|
|
|
|
|
|
|
|
|
|
|
# recursively scan for python modules to be included
|
|
|
|
package_root_dirs = ["pungi"]
|
|
|
|
packages = set()
|
|
|
|
for package_root_dir in package_root_dirs:
|
|
|
|
for root, dirs, files in os.walk(package_root_dir):
|
|
|
|
if "__init__.py" in files:
|
|
|
|
packages.add(root.replace("/", "."))
|
|
|
|
packages = sorted(packages)
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = "pungi",
|
|
|
|
version = "4.0", # make sure it matches with pungi.__version__
|
|
|
|
description = "Distribution compose tool",
|
|
|
|
url = "http://fedorahosted.org/pungi",
|
|
|
|
author = "Dennis Gilmore",
|
|
|
|
author_email = "dgilmore@fedoraproject.org",
|
|
|
|
license = "GPLv2",
|
|
|
|
|
|
|
|
packages = packages,
|
|
|
|
scripts = [
|
|
|
|
'bin/pungi-gather',
|
2015-03-12 16:03:48 +00:00
|
|
|
'bin/pungi',
|
2015-02-05 15:56:24 +00:00
|
|
|
],
|
|
|
|
data_files = [
|
2012-11-26 07:32:01 +00:00
|
|
|
('/usr/share/pungi', glob.glob('share/*.xsl')),
|
|
|
|
('/usr/share/pungi', glob.glob('share/*.ks')),
|
|
|
|
('/usr/share/pungi/multilib', glob.glob('share/multilib/*')),
|
2015-02-05 15:56:24 +00:00
|
|
|
]
|
2012-11-26 07:32:01 +00:00
|
|
|
)
|