Esempio n. 1
0
# #!/bin/env python
from pkglib.setuptools.command import easy_install
easy_install.easy_install.pkglib_bootstrap = True

from setuptools import Distribution

from pkglib.setuptools import dist, setup


def fetch_build_eggs(requires, dist):
    return Distribution.fetch_build_eggs(dist, requires)


dist.fetch_build_eggs = fetch_build_eggs

if __name__ == '__main__':
    setup()
Esempio n. 2
0
#!/bin/env python
from pkglib.setuptools import setup
from pkglib.setuptools.extension import Extension

cfunctions = Extension("acme.foo._cppcython",
                            language="c++",
                            extra_compile_args=["-std=gnu++98"],
                            sources=["src/cppcython.pyx", "src/cppmodule.cpp"])

setup(ext_modules = [cfunctions])
Esempio n. 3
0
from pkglib.setuptools import setup
from pkglib.setuptools.extension import Extension

setup(ext_modules=[
    Extension('acme.foo.ext', ['src/ext.c'], include_dirs=['src'])
])
Esempio n. 4
0
from pkglib.setuptools import setup
from pkglib.setuptools.extension import Extension
setup(ext_modules=[
    Extension("acme.foo._mycython",
              libraries=["m"],
              sources=["src/mycython.pyx", "src/mymodule.c"])
])
Esempio n. 5
0
from pkglib.setuptools import setup
from pkglib.setuptools.extension import Extension
setup(ext_modules = [Extension("acme.foo._mycython",
                       libraries=["m"],
                       sources=["src/mycython.pyx","src/mymodule.c"])])
Esempio n. 6
0
# -*- coding: utf-8 -*-
"""
Setuptools script for pp-latchpony-validate (pp.latchpony.validate)
"""
try:
    from pkglib.setuptools import setup
except ImportError:
    print "PkgLib is not available. Please run \"easy_install pkglib\""
    import sys
    sys.exit(1)

setup()
Esempio n. 7
0
from pkglib.setuptools import setup
from pkglib.setuptools.extension import Extension

setup(ext_modules=[Extension('acme.foo.ext', ['src/ext.pyx'], include_dirs=['src'])])
Esempio n. 8
0
try:
    from pkglib.setuptools import setup
except ImportError:
    print 'PkgLib is not available. Please run "easy_install pkglib"'
    import sys

    sys.exit(1)

# ------------------ Define your C-extensions here --------------------- #

# Conventions:
# Source code under '<package root>/src/'
# Extension modules names begin with an underscore: eg, '_xyz'
# to differentiate them from regular Python modules.

# import numpy
# extra_compile_args = ['-O0']

# setup( ext_modules = [
#        Extension('acme.mypackage._foo', ['src/foo1.c', 'src/foo2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#        ),
#        Extension('acme.mypackage._bar', ['src/bar1.c', 'src/bar2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#       ),
# ])

setup(zip_safe=False, entry_points={"paste.app_factory": "main = pp.user.service:main"})
Esempio n. 9
0
# $HeadURL$
try:
    from pkglib.setuptools import setup
except ImportError:
    print "PkgLib is not available. Please run \"easy_install pkglib\""
    import sys
    sys.exit(1)

# ------------------ Define your C-extensions here --------------------- #

# Conventions:
# Source code under '<package root>/src/'
# Extension modules names begin with an underscore: eg, '_xyz'
# to differentiate them from regular Python modules.

# import numpy
# extra_compile_args = ['-O0']

# setup( ext_modules = [
#        Extension('acme.mypackage._foo', ['src/foo1.c', 'src/foo2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#        ),
#        Extension('acme.mypackage._bar', ['src/bar1.c', 'src/bar2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#       ),
# ])

setup(entry_points={'paste.app_factory': 'main = pp.web.base:main'})
Esempio n. 10
0
# TODO: make this standalone? 
try:
    from pkglib.setuptools import setup
except ImportError:
    print "PkgLib is not available. Please run \"easy_install pkglib\""
    import sys
    sys.exit(1)

# ------------------ Define your C-extensions here --------------------- #

# Conventions:
# Source code under '<package root>/src/'
# Extension modules names begin with an underscore: eg, '_xyz'
# to differentiate them from regular Python modules.

# import numpy
# extra_compile_args = ['-O0']

# setup( ext_modules = [
#        Extension('acme.mypackage._foo', ['src/foo1.c', 'src/foo2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#        ),
#        Extension('acme.mypackage._bar', ['src/bar1.c', 'src/bar2.c']  \
#                   include_dirs=[ numpy.get_include() ],
#                   extra_compile_args=extra_compile_args,
#       ),
# ])

setup(namespace_packages=[])
Esempio n. 11
0
# -*- coding: utf-8 -*-
"""
Setuptools script for pp-latchpony-service (pp.latchpony.service)
"""
try:
    from pkglib.setuptools import setup
except ImportError:
    print "PkgLib is not available. Please run \"easy_install pkglib\""
    import sys
    sys.exit(1)

app_main = "main = pp.latchpony.service:main"

# Register the paster main which pkglib doesn't yet support:
setup(entry_points={'paste.app_factory': app_main})