EconForge / dolo.py

Economic modelling in python
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

No setup.y for installation in editable mode #213

Closed sbenthall closed 3 years ago

sbenthall commented 3 years ago

According to this issue, the recommended for the use of dolark is to install dolo, dolang, and dolark from the git master branch in editable mode with pip install -e .

https://github.com/EconForge/dolark/issues/7

However, dolo.py currently does not have a setup.py file, which is required for installation in editable mode.

$ pip install -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/sb/projects/econ-ark/dolo.py
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)
albop commented 3 years ago

Yes, the transition to the pyproject.toml file is a bit long. I'd say the recommended way is to use pip install . instead. That one works as long as you have installed poetry. If you want to develop without using poetry you can use dephell to generate a local setup.py:

pip install dephell # if not already installed

dephell convert --from=pyproject.toml --to=setup.py # only once
pip install -e . # like old times

On Wed, Nov 11, 2020 at 4:31 PM Sebastian Benthall notifications@github.com wrote:

According to this issue, the recommended for the use of dolark is to install dolo, dolang, and dolark from the git master branch in editable mode with pip install -e .

EconForge/dolark#7 https://github.com/EconForge/dolark/issues/7

However, dolo.py currently does not have a setup.py file, which is required for installation in editable mode.

$ pip install -e . ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/sb/projects/econ-ark/dolo.py (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EconForge/dolo.py/issues/213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKJYYK65MEWUIMKSASLSPKU4VANCNFSM4TSEB5QQ .

albop commented 3 years ago

You'd have to do it, for both dolo and dolang. Now, since, people seem to have issues, with it, I'll push temporarily a setup.py file (and remove it in the future).

On Wed, Nov 11, 2020 at 5:14 PM Pablo Winant pablo.winant@gmail.com wrote:

Yes, the transition to the pyproject.toml file is a bit long. I'd say the recommended way is to use pip install . instead. That one works as long as you have installed poetry. If you want to develop without using poetry you can use dephell to generate a local setup.py:

pip install dephell # if not already installed

dephell --from=pyproject.toml --to=setup.py # only once
pip install -e . # like old times

On Wed, Nov 11, 2020 at 4:31 PM Sebastian Benthall < notifications@github.com> wrote:

According to this issue, the recommended for the use of dolark is to install dolo, dolang, and dolark from the git master branch in editable mode with pip install -e .

EconForge/dolark#7 https://github.com/EconForge/dolark/issues/7

However, dolo.py currently does not have a setup.py file, which is required for installation in editable mode.

$ pip install -e . ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/sb/projects/econ-ark/dolo.py (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EconForge/dolo.py/issues/213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKJYYK65MEWUIMKSASLSPKU4VANCNFSM4TSEB5QQ .

albop commented 3 years ago

Actually, it's not that simple. So for now, the recommended way is to pip install . . if you want to develop the package, preferably use poetry. Tell me if that doesn't work for you.