# #!/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()
#!/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])
from pkglib.setuptools import setup from pkglib.setuptools.extension import Extension setup(ext_modules=[ Extension('acme.foo.ext', ['src/ext.c'], include_dirs=['src']) ])
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"]) ])
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"])])
# -*- 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()
from pkglib.setuptools import setup from pkglib.setuptools.extension import Extension setup(ext_modules=[Extension('acme.foo.ext', ['src/ext.pyx'], include_dirs=['src'])])
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"})
# $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'})
# 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=[])
# -*- 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})