Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip editable install broken #21

Open
Migelo opened this issue Sep 14, 2023 · 0 comments
Open

pip editable install broken #21

Migelo opened this issue Sep 14, 2023 · 0 comments

Comments

@Migelo
Copy link
Owner

Migelo commented Sep 14, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant