Skip to content

Building asteroids with bdist_apps and setuptools>=61 gives error #1394

@rdb

Description

@rdb

Description

Encountering this error:

error: Multiple top-level packages discovered in a flat-layout: ['models', 'textures'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

Steps to Reproduce

Run ..\..\built_x64\python\python.exe setup.py bdist_apps with setuptools>=61.0.0

Known Workaround

Add py_modules=[] to the list of parameters in setup().

Environment

  • Operating system: Windows
  • System architecture: amd64
  • Panda3D version: 9508b04
  • Installation method: source
  • Python version (if using Python): 3.8
  • Compiler (if using C++): MSVC 2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdeploymentIssues with setuptools based application deployment

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions