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

Easier installation with setuptools (or similar) #57

Open
dglava opened this issue Feb 27, 2020 · 3 comments
Open

Easier installation with setuptools (or similar) #57

dglava opened this issue Feb 27, 2020 · 3 comments

Comments

@dglava
Copy link

dglava commented Feb 27, 2020

Would it be possible to create a setup file (setuptools) to make installing this easier?

I'm looking at the README and the instructions seem to skip a few steps. How can one run $ python -m ankisyncd if those files are still in the local directory? Should I manually copy it into my Python site-packages directory? Where should I put the ankisyncctl.py and ankisyncd.conf files?

@AntonOfTheWoods
Copy link

If you're looking for an easier install path, you should probably be looking at using a docker image, and https://github.com/kuklinistvan/docker-anki-sync-server should be a great option. I disagree that setuptools or any of the similar tools are appropriate for setting up network facing services like this.

@dglava
Copy link
Author

dglava commented May 3, 2020

I don't understand why. Ideally it would be packaged in a Linux distribution and installed via the package manager. Other network related programs also get installed that way, so why shouldn't I install this like everything else?

@AntonOfTheWoods
Copy link

I don't understand why. Ideally it would be packaged in a Linux distribution and installed via the package manager. Other network related programs also get installed that way, so why shouldn't I install this like everything else?

Because this is supposed to be a network-accessible service, and that is not really how such services are deployed anymore. It certainly won't be going forward either. I guess anki-sync-server lives in a strange space where there are a lot of installs with only a few users. In any case, web-based services such as this should be container-based, or possibly even serverless. It currently still uses SQLite but doesn't have to. I have it backed by postgresql.

That said, you could always propose an implementation, as this is indeed open source!

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

2 participants