Skip to content

pip editable install broken #21

@Migelo

Description

@Migelo

Installing via pip install -e . is broken. When importing pygad installed in such a way it is an empty module:

In [1]: import pygad as pg
In [2]: dir(pg)
Out[2]:
['__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__']

As suggested by pypa/setuptools#3548 (comment) we can install pygad as

pip install -e . --config-settings editable_mode=strict

and voila

In [1]: import pygad as pg
In [2]: dir(pg)
Out[2]:
['BallMask',
 'BoxMask',
 'C',
...
 'units',
 'utils',
 'write']

Should this be included in the docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions