administrative stuffs

This commit is contained in:
Travis J Parker 2010-06-09 18:04:50 -07:00
parent ba5e8c57c1
commit 94aaf320bc
5 changed files with 94 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
.*.swp
prctl.egg-info/*
MANIFEST.in
build/*
docs/build/*
dist/*
html/*

19
LICENSE Normal file
View File

@ -0,0 +1,19 @@
Copyright 2005-2010 Slide, Inc.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
Slide not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
SLIDE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
NO EVENT SHALL SLIDE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

61
pavement.py Normal file
View File

@ -0,0 +1,61 @@
import errno
import os
from setuptools import Extension
from paver.easy import *
from paver.path import path
from paver.setuputils import setup
setup(
name="prctl",
description="C extension for access to the prctl(2) system call",
version="1.0",
ext_modules=[Extension(
'prctl',
['prctlmodule.c'],
include_dirs=['/usr/include'],
depends=['/usr/include/sys/prctl.h'],
extra_compile_args=['-Wall'])],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
#"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: Unix",
"Programming Language :: C",
"Topic :: System",
]
)
MANIFEST = (
"setup.py",
"paver-minilib.zip",
"prctlmodule.c",
)
@task
def manifest():
path('MANIFEST.in').write_lines('include %s' % x for x in MANIFEST)
@task
@needs('generate_setup', 'minilib', 'manifest', 'setuptools.command.sdist')
def sdist():
pass
@task
def clean():
for p in map(path, ('prctl.egg-info', 'dist', 'build', 'MANIFEST.in')):
if p.exists():
if p.isdir():
p.rmtree()
else:
p.remove()
for p in path(__file__).abspath().parent.walkfiles():
if p.endswith(".pyc") or p.endswith(".pyo"):
try:
p.remove()
except OSError, exc:
if exc.args[0] == errno.EACCES:
continue
raise

BIN
paver-minilib.zip Normal file

Binary file not shown.

7
setup.py Normal file
View File

@ -0,0 +1,7 @@
import os
if os.path.exists("paver-minilib.zip"):
import sys
sys.path.insert(0, "paver-minilib.zip")
import paver.tasks
paver.tasks.main()