Skip to content

Commit

Permalink
List packages explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Dec 27, 2024
1 parent 7a5143e commit 4b7792e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ requires = [

[tool.setuptools]
dynamic.version.attr = "cpymad.__version__"
packages.find = {where = ["src"], include = ["cpymad*"]}
packages = ["cpymad", "cpymad.COPYING"]
package-dir = {"" = "src"}
package-data = {"cpymad.COPYING" = ["*.rst"]}
include-package-data = false
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# at the commit that first added this paragraph (can be identified using `git
# blame`) and the simplifications that were possible in the following commits.

from setuptools import setup, find_packages, Extension
from setuptools import setup, Extension
from distutils.util import get_platform
from distutils import sysconfig
from argparse import ArgumentParser
Expand Down Expand Up @@ -145,7 +145,7 @@ def get_extension_args(madxdir, shared, static, **libs):
sources=["src/cpymad/libmadx.pyx"],
**get_extension_args(**options.__dict__)),
]),
packages=find_packages('src', include='cpymad*'),
packages=['cpymad', 'cpymad.COPYING'],
package_dir={'': 'src'},
zip_safe=False, # zip is bad for redistributing shared libs
include_package_data=True, # include files matched by MANIFEST.in
Expand Down

0 comments on commit 4b7792e

Please sign in to comment.