version = get_version_string() setuptools.setup( name='python-base', version=version, packages=setuptools.find_packages(SRC_PATH), namespace_packages=setuptools.find_packages(SRC_PATH), package_dir={'': SRC_PATH, }, scripts=sorted(list_scripts()), package_data={"base": ["VERSION"], },...
# 需要导入模块: import setuptools [as 别名]# 或者: from setuptools importfind_packages[as 别名]defmain():ifsys.version_info < (3,5,3):raiseRuntimeError("Peony requires Python 3.5.3+") dirname = os.path.dirname(inspect.getfile(inspect.currentframe()))# get metadata and keywords from peony...
from setuptools import find_packages from setuptools import find_namespace_packages # modeled after CPython's test.support.can_symlink def can_symlink(): TESTFN = tempfile.mktemp() symlink_path = TESTFN + "can_symlink" try: os.symlink(TESTFN, symlink_path) can = True ...
How to Usefind_packages() To use thefind_packages()function in your setup file, you first need to import it from thesetuptoolspackage. Here is an example of how to usefind_packages()in a setup file: fromsetuptoolsimportsetup,find_packages setup(name='my_project',version='1.0',packages=fin...
这是一个custom discovery directive,这里使用的是pyproject.toml语法。
1 from setuptools import setup, find_packages ImportError: No module named set wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py 2 ile "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
packages=find_packages(include=['zipline', 'zipline.*']), TypeError: find_packages() got an unexpected keyword argument 'include' I then try to update both pip and setuptools==3.3, and 23.0.0 as well all gave me same results... Sincerely, Shikais...
find_kwargs = self.parse_section_packages__find( self.sections.get('packages.find', {})) if findns: from setuptools import find_namespace_packages as find_packages else: from setuptools import find_packages return find_packages(**find_kwargs) Example...
如果衡量单元测试对相应代码的测试重量,覆盖率是一个必要非充分条件,因此统计代码的覆盖率,检视单测...
Then, it defines a function calledget_extensionsthat returns a list of extension modules to build. This function checks if CUDA is available and sets the compile flags accordingly. Finally, it calls thesetupfunction from setuptools with the necessary parameters to build and install the extension mo...