anki-sync-server icon indicating copy to clipboard operation
anki-sync-server copied to clipboard

Easier installation with setuptools (or similar)

Open dglava opened this issue 4 years ago • 3 comments

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?

dglava avatar Feb 27 '20 11:02 dglava

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.

AntonOfTheWoods avatar May 03 '20 02:05 AntonOfTheWoods

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?

dglava avatar May 03 '20 11:05 dglava

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!

AntonOfTheWoods avatar May 04 '20 00:05 AntonOfTheWoods