-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standard "python setup.py install" support which installs the frameworks and the command-line programs in sbin/
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build | ||
dist | ||
*.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
crankd-config.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) | ||
) |