Re:Ntfy: A utility for sending notifications
by voltagex_ on Saturday August 27, 2016 @08:31AM
(#12372064)
Today I dumped a not-insignificant amount of time into trying to package ntfy into a single exe on Windows (using PyInstaller. It sort-of works, but was way way more painful than it needed to be. Python packaging still sucks in 2016. Go is way ahead of Python in that regard, but comes with its own quirks (GitHub by default, always uses the HEAD version of libraries, GOPATH)
[ Parent
| on HN ]
Re:Ntfy: A utility for sending notifications
by pmontra on Sunday August 28, 2016 @01:12AM
(#12375388)
I'm not familiar with PyInstaller but I wouldn't do anything similar with scripting languages. They are meant to be distributed as scripts so I'm not surprised it took you all that time. Why didn't you use pip to install on (I suppose) those other Windows machines?
There are similar problems with Ruby when people want to distribute executables. I remember I googled a solution that made a friend of mine happy (he had to deploy on multiple Windows machines, I don't remember what I suggested him to do) but still it's the wrong way to go. If creating a single executable is a hard requirement then yes, they are the wrong languages to solve your problem.
Re:Ntfy: A utility for sending notifications
by voltagex_ on Sunday August 28, 2016 @01:59AM
(#12375479)
I didn't use pip because the normal way to distribute applications on Windows is to use an exe, possibly with an installer.
Packaging Python on Windows has always been tricky.
https://github.com/larsch/ocra is the Ruby equivalent.