当前位置: 首页>>代码示例>>Python>>正文


Python Extension.sources[0]方法代码示例

本文整理汇总了Python中setuptools.Extension.sources[0]方法的典型用法代码示例。如果您正苦于以下问题:Python Extension.sources[0]方法的具体用法?Python Extension.sources[0]怎么用?Python Extension.sources[0]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在setuptools.Extension的用法示例。


在下文中一共展示了Extension.sources[0]方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

# 需要导入模块: from setuptools import Extension [as 别名]
# 或者: from setuptools.Extension import sources[0] [as 别名]
        'Operating System :: Unix',
        'Operating System :: MacOS',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
    ],
    'keywords' : 'cluster clustering density hierarchical',
    'url' : 'http://github.com/lmcinnes/hdbscan',
    'maintainer' : 'Leland McInnes',
    'maintainer_email' : '[email protected]',
    'license' : 'BSD',
    'packages' : ['hdbscan'],
    'install_requires' : ['scikit-learn>=0.16',
                          'cython >= 0.17'],
    'ext_modules' : [_hdbscan_tree,
                     _hdbscan_linkage,
                     _hdbscan_boruvka,
                     _hdbscan_reachability,
                     dist_metrics],
    'cmdclass' : {'build_ext' : build_ext},
    'test_suite' : 'nose.collector',
    'tests_require' : ['nose'],
    }

if not HAVE_CYTHON:
    _hdbscan_tree.sources[0] = '_hdbscan_tree.c'
    _hdbscan_linkage.sources[0] = '_hdbscan_linkage.c'
    configuration['install_requires'] = ['scikit-learn>=0.16']

setup(**configuration)
 
开发者ID:pombredanne,项目名称:hdbscan,代码行数:31,代码来源:setup.py

示例2:

# 需要导入模块: from setuptools import Extension [as 别名]
# 或者: from setuptools.Extension import sources[0] [as 别名]
        'Programming Language :: Python :: 3.4',
    ],
    'keywords' : 'cluster clustering density hierarchical',
    'url' : 'http://github.com/lmcinnes/hdbscan',
    'maintainer' : 'Leland McInnes',
    'maintainer_email' : '[email protected]',
    'license' : 'BSD',
    'packages' : ['hdbscan'],
    'install_requires' : ['scikit-learn>=0.16',
                          'cython >= 0.17'],
    'ext_modules' : [_hdbscan_tree,
                     _hdbscan_linkage,
                     _hdbscan_boruvka,
                     _hdbscan_reachability,
                     dist_metrics],
    'cmdclass' : {'build_ext' : build_ext},
    'test_suite' : 'nose.collector',
    'tests_require' : ['nose'],
    }

if not HAVE_CYTHON:
    _hdbscan_tree.sources[0] = '_hdbscan_tree.c'
    _hdbscan_linkage.sources[0] = '_hdbscan_linkage.c'
    _hdbscan_boruvka.sources[0] = '_hdbscan_boruvka.c'
    _hdbscan_reachability.sources[0] = '_hdbscan_reachability.c'
    dist_metrics.sources[0] = 'dist_metric.c'
    configuration['install_requires'] = ['scikit-learn>=0.16']

setup(**configuration)
 
开发者ID:ddcamiu,项目名称:hdbscan,代码行数:31,代码来源:setup.py

示例3:

# 需要导入模块: from setuptools import Extension [as 别名]
# 或者: from setuptools.Extension import sources[0] [as 别名]
                                             '%d'%MAJOR_VERSION),
                                            ('MINOR_VERSION',
                                             '%d'%MINOR_VERSION),
                                            ('BUILD_VERSION',
                                             '%d'%BUILD_VERSION),
                                            ('REVISION_VERSION',
                                             '%d'%REVISION_VERSION)],
                           include_dirs = ['/usr/local/lib/ph300/'],
                           library_dirs=['/usr/lib'],
                           libraries = ['ph300'],
                           sources = ['PicoHarp.pyx'])

configuration = {'name':'PicoHarp',
                 'version':'%d.%d.%d.%d'
                            %(MAJOR_VERSION,MINOR_VERSION,
                              BUILD_VERSION,REVISION_VERSION),
                 'license':'LGPLv3+',
                 'description': "TODO: pending",
                 'long_description':'''TODO: Long description pending''',
                 'author':"Sergi Blanch-Torn\'e",
                 'author_email':"[email protected]",
                 'install_requires': ['cython==0.11'],
                 'ext_modules': [PicoHarpModule],
                 'cmdclass': {'build_ext': build_ext}}

if not HAVE_CYTHON:
    PicoHarpModule.sources[0] = 'PicoHarp.c'
    configuration.pop('install_requires')

setup(**configuration)
开发者ID:srgblnch,项目名称:PicoHarp300,代码行数:32,代码来源:setup.py

示例4:

# 需要导入模块: from setuptools import Extension [as 别名]
# 或者: from setuptools.Extension import sources[0] [as 别名]
        'Programming Language :: Python',
        'Topic :: Software Development',
        'Topic :: Scientific/Engineering',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Operating System :: MacOS',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
    ],
    'keywords' : 'tsne semi-supervised dimension reduction',
    'url' : 'http://github.com/lmcinnes/sstsne',
    'maintainer' : 'Leland McInnes',
    'maintainer_email' : '[email protected]',
    'license' : 'BSD',
    'packages' : ['sstsne'],
    'install_requires' : ['scikit-learn>=0.17.1',
                          'cython >= 0.17'],
    'ext_modules' : [_utils,
                     _barnes_hut_tsne],
    'cmdclass' : {'build_ext' : build_ext},
    'test_suite' : 'nose.collector',
    'tests_require' : ['nose'],
    }

if not HAVE_CYTHON:
    _utils.sources[0] = '_utils.c'
    _barnes_hut_tsne.sources[0] = '_barnes_hut_tsne.c'
    configuration['install_requires'] = ['scikit-learn>=0.17.1']

setup(**configuration)
开发者ID:lmcinnes,项目名称:sstsne,代码行数:33,代码来源:setup.py

示例5:

# 需要导入模块: from setuptools import Extension [as 别名]
# 或者: from setuptools.Extension import sources[0] [as 别名]
    'url' : 'http://github.com/scikit-learn-contrib/hdbscan',
    'maintainer' : 'Leland McInnes',
    'maintainer_email' : '[email protected]',
    'license' : 'BSD',
    'packages' : ['hdbscan'],
    'install_requires' : ['scikit-learn>=0.16',
                          'cython >= 0.17'],
    'ext_modules' : [_hdbscan_tree,
                     _hdbscan_linkage,
                     _hdbscan_boruvka,
                     _hdbscan_reachability,
                     _prediction_utils,
                     dist_metrics],
    'cmdclass' : {'build_ext' : build_ext},
    'test_suite' : 'nose.collector',
    'tests_require' : ['nose'],
    'data_files' : ('hdbscan/dist_metrics.pxd',)
    }

if not HAVE_CYTHON:
    _hdbscan_tree.sources[0] = 'hdbscan/_hdbscan_tree.c'
    _hdbscan_linkage.sources[0] = 'hdbscan/_hdbscan_linkage.c'
    _hdbscan_boruvka.sources[0] = 'hdbscan/_hdbscan_boruvka.c'
    _hdbscan_reachability.sources[0] = 'hdbscan/_hdbscan_reachability.c'
    _prediction_utils.sources[0] = 'hdbscan/_prediction_utils.c'
    dist_metrics.sources[0] = 'hdbscan/dist_metrics.c'
    configuration['install_requires'] = ['scikit-learn>=0.16']

setup(**configuration)
 
开发者ID:CyberSift,项目名称:hdbscan,代码行数:31,代码来源:setup.py


注:本文中的setuptools.Extension.sources[0]方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。