Shuffle things around so that dist-utils can be used.

This commit is contained in:
jkeating@harpoon.lab.boston.redhat.com 2006-11-08 16:34:59 -05:00 committed by Jesse Keating
parent cbb78e7318
commit 023ad1b0fb
12 changed files with 30 additions and 7 deletions

9
MANIFEST.in Normal file
View File

@ -0,0 +1,9 @@
include Authors
include Changelog
include COPYING
include GPL
include PLAN.*
include README
include TESTING
include ToDo
include config/*

View File

View File

@ -19,7 +19,7 @@ metadata_expire=1800
[development]
name=Fedora Core - Development
baseurl=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/development/x86_64/os/
http://download.fedora.redhat.com/pub/fedora/linux/core/development/x86_64/os/
# http://download.fedora.redhat.com/pub/fedora/linux/core/development/x86_64/os/
#baseurl=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/development/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
enabled=1

View File

@ -13,8 +13,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
import gather
import pungi
import pypungi.gather
import pypungi.pungi
import yum
def main():
@ -37,11 +37,11 @@ def main():
print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.cachedir
sys.exit(1)
mygather = gather.Gather(opts, pkglist)
mygather = pypungi.gather.Gather(opts, pkglist)
mygather.getPackageObjects()
mygather.downloadPackages()
mypungi = pungi.Pungi(opts)
mypungi = pypungi.pungi.Pungi(opts)
mypungi.doBuildinstall()
mypungi.doPackageorder()
mypungi.doSplittree()

0
pypungi/__init__.py Normal file
View File

View File

@ -14,8 +14,7 @@
import os
import sys
#sys.path.append('/usr/lib/anaconda-runtime')
sys.path.append('./tests') # use our patched splittree for now
#sys.path.append('/usr/lib/anaconda-runtime') # use our patched splittree for now
import splittree
import shutil

15
setup.py Normal file
View File

@ -0,0 +1,15 @@
from distutils.core import setup
import glob
setup(name='pungi',
version='0.1.0',
description='Distribution compose tool',
author='Jesse Keating',
author_email='jkeating@redhat.com',
url='http://linux.duke.edu/projects/pungi',
license='GPL',
packages = ['pypungi'],
scripts = ['pungi'],
data_files=[('/etc/pungi', glob.glob('config/*'))]
)