Beispiel #1
0
            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',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
Beispiel #2
0
# 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(
              LIBNAME + '._scaler',
              [join("src", "scaler.cpp"),
               join("src", "pcolor.cpp")],
Beispiel #3
0
        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="4.3.1",  # Update here *AND* in __init__.py!
    # (Until setup.py has been fully retrofitted, this manual sync is mandatory)
    description=__description__,
    long_description=LONG_DESCRIPTION,
    packages=get_subpackages(LIBNAME),
    package_data={
        LIBNAME: get_package_data(LIBNAME, (".png", ".svg", ".mo", ".dcm", ".ui"))
    },
    data_files=[(r"Doc", [CHM_DOC])] if CHM_DOC else [],
    install_requires=[
        "NumPy>=1.3",
        "SciPy>=0.7",
        "guidata>=2.3",
        "PythonQwt>=0.10",
        "Pillow",
        "QtPy>=1.3",
    ],
    extras_require={
        "Doc": ["Sphinx>=1.1"],
        "DICOM": ["pydicom>=0.9.3"],
    },
    entry_points={
Beispiel #4
0
for arg, compile_arg in (("--sse2", "-msse2"),
                         ("--sse3", "-msse3"),):
    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,
      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.7.0)", "PythonQwt (>=0.3.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(LIBNAME+'._scaler', [join("src", "scaler.cpp"),
                                                  join("src", "pcolor.cpp")],
                             extra_compile_args=CFLAGS,
                             depends=[join("src", "traits.hpp"),
                                      join("src", "points.hpp"),
                                      join("src", "arrays.hpp"),
Beispiel #5
0
                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',