Skip to content

Commit

Permalink
Merge pull request #7832 from ThomasWaldmann/exclude-compiled-files
Browse files Browse the repository at this point in the history
pyproject.toml: exclude source files which have been compiled, fixes #7828
  • Loading branch information
ThomasWaldmann committed Sep 17, 2023
2 parents c686dc8 + 4b1dac7 commit 84fc938
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ nofuse = []
borg = "borg.archiver:main"
borgfs = "borg.archiver:main"

[tool.setuptools]
# See also the MANIFEST.in file.
# We want to install all the files in the package directories...
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.exclude-package-data]
# ...except the source files which have been compiled (C extensions):
"*" = ["*.c", "*.h", "*.pyx"]

[build-system]
requires = ["setuptools", "wheel", "pkgconfig", "Cython", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit 84fc938

Please sign in to comment.