Skip to content
Browse files

Moving to a python package.

  • Loading branch information...
1 parent 4b22c29 commit 60bd5af71f5f9e1de94d4a11d332d859be140e06 @masom committed Feb 21, 2012
Showing with 19 additions and 5 deletions.
  1. +16 −0 client/setup.py
  2. +1 −1 setup/setup.sh
  3. +2 −4 specs/pixie.spec
View
16 client/setup.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+
+from distutils.core import setup
+
+setup (
+ name = 'pixie',
+ description = "Virtualization configuration client",
+ author = "Martin Samson",
+ author_email = "msamson@hcn-inc.com",
+ version = '1.0',
+ packages = ['pixie'],
+ data_files = [
+ ('/etc', ['pixie.conf'])
+ ],
+ scripts = ['pixie.py']
+)
View
2 setup/setup.sh
@@ -62,7 +62,7 @@ cd $START
rm -rf $DEST
# Download meta-data from openstack.
-fetch http://169.254.269.254/2009-04-04/meta-data/puck_vm_id -o /usr/local/etc/puck_registration
+fetch http://169.254.169.254/2009-04-04/meta-data/puck_vm_id -o /usr/local/etc/puck_registration
#Overwrites rc.local to launch pixie
( cat <<'EOF'
View
6 specs/pixie.spec
@@ -8,21 +8,19 @@ Release: 1%{?dist}
Summary: Pixie, jail virtualization configuration client
Source0: pixie-%{version}.tar.gz
-License: LGPL
-BuildArch: noarch
+License: LGPL
+Requires: Mako CherryPy
%description
Pixie is a FreeBSD jail virtualization configuration client. See http://github.com/masom/Puck
%prep
%setup -q
-
%build
# Remove CFLAGS=... for noarch packages (unneeded)
%{__python} setup.py build
-
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

0 comments on commit 60bd5af

Please sign in to comment.
Something went wrong with that request. Please try again.