Skip to content

Problem with installation and setuptool #30

@ElMastro

Description

@ElMastro

Greetings,
I am sorry for opening a new issue on installation, but I couldn't solve it and Openmodelica forum is disabled to posting.

When (on my Archlinux machine) I run "python setup.py install" the result is just

`error: Multiple top-level packages discovered in a flat-layout: ['old', 'misc', 'running', 'testing', 'analysis', 'plotting', 'resource', 'settings', 'sweeping', 'vectorial', 'filesystem', 'mos_writer', 'readme_writer', 'world3_specific', 'fortran_interface', 'modelica_interface'].

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.`

I found on Stackoverflow that the solution shall be to insert a py-modules = [] definition in the code, but unfortunately this doesn't solve anything in my case. Can someone please give me an advice on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions