Beispiel #1
0
            # code so that the documentation is built on this and not a
            # previously installed version
            build = self.get_finalized_command('build')
            sys.path.insert(0, os.path.abspath(build.build_lib))
            try:
                sphinx.setup_command.BuildDoc.run(self)
            except UnicodeDecodeError:
                print("ERROR: unable to build documentation because Sphinx do not handle source path with non-ASCII characters. Please try to move the source package to another location (path with *only* ASCII characters).", file=sys.stderr)
            sys.path.pop(0)

    cmdclass['build_doc'] = build_doc


setup(name=LIBNAME, version=version,
      description=DESCRIPTION, long_description=LONG_DESCRIPTION,
      packages=get_subpackages(LIBNAME),
      package_data={LIBNAME:
                    get_package_data(LIBNAME, ('.png', '.svg', '.mo'))},
      scripts=SCRIPTS,
      requires=["PyQt4 (>4.3)",],
      author = "Pierre Raybaut",
      author_email = '*****@*****.**',
      url = 'https://github.com/PierreRaybaut/%s' % LIBNAME,
      license = 'CeCILL V2',
      classifiers=CLASSIFIERS + [
        'Operating System :: MacOS',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: OS Independent',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2.6',
Beispiel #2
0
    if arg in sys.argv:
        sys.argv.pop(sys.argv.index(arg))
        CFLAGS.insert(0, compile_arg)

# Compiling Cython modules to C source code: this is the only way I found to
# be able to build both Fortran and Cython extensions together
# (this could be changed now as there is no longer Fortran extensions here...)
cythonize_all('src')

setup(name=LIBNAME,
      version=version,
      download_url='http://%s.googlecode.com/files/%s-%s.zip' %
      (LIBNAME, LIBNAME, version),
      description=DESCRIPTION,
      long_description=LONG_DESCRIPTION,
      packages=get_subpackages(LIBNAME),
      package_data={
          LIBNAME:
          get_package_data(LIBNAME, ('.png', '.svg', '.mo', '.dcm', '.ui'))
      },
      requires=[
          "PyQt4 (>4.3)", "NumPy (>=1.3)", "SciPy (>=0.7)",
          "guidata (>=1.6.0)", "PIL (>=1.1.6)"
      ],
      scripts=SCRIPTS,
      ext_modules=[
          Extension(LIBNAME + '.histogram2d', [join('src', 'histogram2d.c')],
                    include_dirs=[numpy.get_include()]),
          Extension(LIBNAME + '.mandelbrot', [join('src', 'mandelbrot.c')],
                    include_dirs=[numpy.get_include()]),
          Extension(