Skip to content

Commit

Permalink
Distutils support
Browse files Browse the repository at this point in the history
Standard "python setup.py install" support which installs the frameworks
and the command-line programs in sbin/
  • Loading branch information
acdha committed Jun 8, 2009
1 parent 504e737 commit eae2c41
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
dist
*.py[co]
1 change: 1 addition & 0 deletions examples/crankd/sample-of-events/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
crankd-config.plist
39 changes: 39 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env python

from distutils.core import setup
import glob
import os
from distutils.command.install import INSTALL_SCHEMES

# Force
INSTALL_SCHEMES['unix_prefix']['scripts'] = '$base/sbin'

setup(
version = '1.0',
name = 'PyMacAdmin',
description = "Python tools for Mac administration",
author = "Chris Adams",
author_email = "chris@improbable.org",
url = "http://pymacadmin.googlecode.com/",
platforms = [ 'macosx-10.5' ],
license = 'Apache Software License',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: MacOS X',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
],
package_dir = { '' : 'lib' },
packages = [
".".join(dirpath.split("/")[1:]) for dirpath, dirnames, filenames in os.walk('lib') if "__init__.py" in filenames
],
scripts = glob.glob(os.path.join(os.path.dirname(__file__), 'bin', '*.py'))
)

0 comments on commit eae2c41

Please sign in to comment.