baking-bad / pytezos

🐍 Python SDK for Tezos | Michelson VM in Python
https://pytezos.org
MIT License
111 stars 36 forks source link

How to install in editable mode #277

Closed jpic closed 2 years ago

jpic commented 2 years ago

Hi!

Trying to install the app in editable mode, as usual, to fix a bug in my use case and contribute, but:

22/12 2021 11:44:25 jpic@jpic ~/src/pytezos  (master)
$ pip install --user -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/jpic/src/pytezos
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

Anyone can share a way to install this module in editable mode please?

Thanks! :tophat:

m-kus commented 2 years ago

They say it should be available soon: https://github.com/python-poetry/poetry/issues/34#issuecomment-947773710

I tried to update pip and install poetry-core from master, but didn't work for me🤷‍♂️

But generally you can just do poetry install and work in the venv poetry created

m-kus commented 2 years ago

I will close this issue for now, feel free to reopen if neither of the following options suits your needs:

jpic commented 2 years ago

I use vim but it's okay I'll just add a setup.py in my wc

m-kus commented 2 years ago

You can start vim from the poetry shell