pyproject.toml

How to write a minimally working pyproject.toml file that can install packages?

孤街浪徒 提交于 2021-01-26 10:00:24
问题 Pip supports the pyproject.toml file but so far all practical usage of the new schema requires a 3rd party tool that auto-generates these files (e.g., poetry and pip). Unlike setup.py which is already human-writeable, pyproject.toml is not (yet). From setuptools docs, [build-system] requires = [ "setuptools >= 40.9.0", "wheel", ] build-backend = "setuptools.build_meta" However, this file does not include package dependencies (as it should not in PEP518 which only deals with build dependencies

Specify setup time dependency with `--global-option` for a python package

落花浮王杯 提交于 2019-12-11 15:34:33
问题 I'm trying to package a python library that has setup-time (and also run-time) dependencies: it import s the modules so that the modules can inform the setup process of the location of some provided C headers: from distutils.extension import Extension from pybedtools.helpers import get_includes as pybedtools_get_includes from pysam import get_include as pysam_get_include # [...] extensions = [ Extension( "bam25prime.libcollapsesam", ["bam25prime/libcollapsesam.pyx"], include_dirs=pysam_get