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

[Question] How to setup chessli for testing and install from local directory #19

Closed
ExtremeCoolDude opened this issue Mar 16, 2021 · 4 comments
Labels
question Further information is requested

Comments

@ExtremeCoolDude
Copy link

Newish coder, how to setup chessli for tinkering purposes and also how to test tinkered features without breaking the pip install. Thanks for this awesome tool!

@pwenker
Copy link
Owner

pwenker commented Mar 17, 2021

In order to develop on chessli, the best workflow is to clone this repository and then pip install it from within the cloned repository instead of installing it from pypi.

  1. Clone the repository: git clone https://github.com/pwenker/chessli.git
  2. Move into the folder and install it: cd chessli && pip install .
  3. Perform whatever changes you want to do inside of the chessli repository.
  4. Go back into the chessli folder and do pip install .

Notes:

  • You might need to uninstall your existing chessli version before trying it out: pip uninstall chessli.
  • Unfortunately, I don't know of any more straightforward way, since I use pyproject.toml and poetry instead of setup.py. For the latter one, it is possible to install via pip install -e . so that you don't need to reinstall chessli after every single change that you want to test. There is an open issue: pip install -e . equivalent? python-poetry/poetry#34
  • I don't know how the above steps need to be adapted if you are a windows user.

Feel free to comment below, in case it works, or also if you encounter problems or have further questions :)

@pwenker pwenker added the question Further information is requested label Mar 17, 2021
@pwenker
Copy link
Owner

pwenker commented Mar 28, 2021

@ExtremeCoolDude: Did it work for you?

@ExtremeCoolDude
Copy link
Author

ExtremeCoolDude commented Mar 28, 2021

Got stuck in the first step tbh, I think its too basic problem but can't figure it out via google-fu.

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/da/chessli/chessli

Edit: my bad, this issue can be closed, I've been missing the period . character. It worked!

@pwenker
Copy link
Owner

pwenker commented Mar 28, 2021

Awesome. Happy coding :)

@pwenker pwenker closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants