From dfe81ba1642b59d345dd0262705a327380d27242 Mon Sep 17 00:00:00 2001 From: John Cannon Date: Tue, 17 Dec 2024 14:22:31 +1100 Subject: [PATCH] Exclude 'build' dir when installing via setuptools. Eg, otherwise 'pip install .' will install 'build' dir into site-packages. --- MANIFEST.in | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 344dd429..a8d78ac3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ -include gplately/logging_config.yaml \ No newline at end of file +include gplately/logging_config.yaml +prune build \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ddbbb281..1c67a3e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dependencies = [ [tool.setuptools.packages.find] where = ["."] -exclude = ['*.examples*','*.notebooks*','tests-dir*','Notebooks*', 'scripts*'] +exclude = ['*.examples*','*.notebooks*','tests-dir*','Notebooks*', 'scripts*', 'build*'] namespaces = true #[tool.setuptools.dynamic]