-
Notifications
You must be signed in to change notification settings - Fork 29
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
How to install? #5
Comments
Nothing that fancy at this point. You can just download the script, put it anywhere in your $PATH and execute it. |
Gotcha, thanks! |
FYI, this is now in pypi as |
sweet! |
For me there seems to be a problem. If I use |
I use archlinux. I don't know much about how pip works on other distributions (or how it works at all, really). But I have had luck with Btw, when you say "non-working" what does that mean exactly? |
I'm using Solus 3
Using the
Cloning the repo works as expected though so I assume something does not work with the packaging. |
I've now tested this on OSX as well and it seems to be working fine. I'm not sure what to suggest since I can't reproduce the issue. You may want to raise this with your community support channels for Solus. |
Stop! The .tar.gz is incomplete. Btw. if someone creates a clone from your project it contains an empty eco dir and inside annotator/eco an invalid link pointing to |
A few things off the cuff before I look into this more deeply:
|
All in all to create a correct source distribution on pypi you have to make a decision. If you want eco.json to be a package data file (meaning it can be installed OS independent way, just right under your annotator package dir) you have to make annotator a package (adding If you don't want annotator to be a Python package (just a pure module) you have to install eco.py in Anyway, you have to do something with your project layout unless your symlinked eco.json data file will be hard to handle with setup.py |
Alright, I'll look this up. If you are aware of any resources that explain the difference between
I did this, but I'm not sure how to understand what I'm seeing or what I should be looking for in this archive. For what it's worth, I verified this again with
It's going to take me a bit of time to learn more about this and make a decision. Since the pypi package seems to be working, I don't consider this urgent.
Yeah, I noticed in another issue that it's weird how I set this up, with the submodule in the root dir and a symlink pointing to it. I don't really remember why I did it that way. Looking at it again, the only reason I can guess might have motivated this structure is that the eco submodule contains files that chess-annotator doesn't need, so maybe I didn't want them included in the pypi package. But this isn't really a big deal, and almost assuredly is not worth complicating the packaging/installation process at all. Simplifying that in the way you suggested is probably my first order of business here. |
The packaging tutorial is here https://packaging.python.org/tutorials/distributing-packages/ Telling the truth chess-annotator pypi package is not working at all. And it can't work because the |
In general, you need to be more specific than this when reporting problems. For example, a console log of how you installed it, how you tried to run it, and what errors/stack trace you got in response is a good idea in this situation.
Maybe you're right but I don't know how to prove that. The point is that unless I find a way to reproduce the issue then I can't troubleshoot or address it at all. |
I'v just tried it on my Windows 10 box which never seen nor chess-annotator nor python-chess before. (I use it for PyChess testing only.)
But this is not a big surprise, because |
Per the readme you should invoke it with e.g. Okay, this is useful:
|
I just repeat myself, but again, look into the .tar.gz anyone can download from pypi please! Can you find your |
Because I know next to nothing about how pip or pypi work at all. For all I know/knew, that package is something akin to a PKGBUILD that contains information about where the required resources can be obtained elsewhere. And since (until now) I couldn't reproduce the problem, I had no way to even begin to approach it. Luckily, I understand now that it appeared to be working only because my cwd was in the cloned repository and so Therefore I agree with you now that the pypi package is broken and I need to fix it, and I can possibly fix it now that I know how to reproduce the problem. Thanks for reporting this and working with me on it. I'll try to make time ASAP to get a working package uploaded. |
No problem. The basic working of pip and pypi is simple. In simplest case you use |
This should simplify the process of packaging the app for pypi. See #5
Alright. I got rid of the |
@rpdelaney |
Just one note. You can include |
I tried that but it did not work. I don't know why. At this point I'm just happy to have a working solution. I'll be updating pypi shortly and then closing this issue. |
Maybe you just mistyped something. I tried it also, and it worked :) |
Confirmed pypi distribution is working in version 1.1.1. Thanks again |
I'm interested in running this as a user, not hacking around on it, so I figured it would be available in python repos.
I tried:
and got "No matching distribution found for chess-annotator".
Is there a way to install this with pip?
The text was updated successfully, but these errors were encountered: