|
|
Subscribe / Log in / New account

Remote imports for Python?

Remote imports for Python?

Posted Aug 30, 2017 16:49 UTC (Wed) by adam820 (subscriber, #101353)
In reply to: Remote imports for Python? by drag
Parent article: Remote imports for Python?

So maybe not an import-from-URL, but more of an "auto-pip", where everything is hosted and vetted? If you stick an import in the code, and then try to run it but it doesn't have it, it just searches for it and auto-downloads it?


to post comments

Remote imports for Python?

Posted Aug 30, 2017 17:11 UTC (Wed) by epa (subscriber, #39769) [Link] (1 responses)

It searches for it, makes an RPM spec file, builds and installs it, and submits the source package for inclusion in Fedora?

Remote imports for Python?

Posted Aug 31, 2017 15:57 UTC (Thu) by gioele (subscriber, #61675) [Link]

> It searches for it, makes an RPM spec file, builds and installs it, and submits the source package for inclusion in Fedora?

It is not that automated, but the Debian packages for many Rubygems are created, built and semi-automatically updated in a similar way, using gem2deb and gemwatch.

Remote imports for Python?

Posted Aug 31, 2017 1:20 UTC (Thu) by drag (guest, #31333) [Link] (1 responses)

> So maybe not an import-from-URL, but more of an "auto-pip", where everything is hosted and vetted?

I suppose so.

I like how Debian does it with apt-get. You have a signed list of packages with their checksums and locations and mirrors. You could mirror the file local to the list or on any server really. Then you don't have to really care where or how they are stored because you have their checksums in a secure manner. Https vs http vs ftp vs nfs mount or whatever... doesn't matter.

Nothing revolution or weird or remarkable or even that much different. The difference between this sort of setup versus distro packages is that it would be OS agnostic since it would be largely source code based. The same list of packages would be for OS X vs Linux vs Windows or whatever.

Of course the crappy part is that some packages would require all libraries being present for compiling. I know that is relatively easy for Linux, but I don't know what that is like to setup for OS X or Windows.

Remote imports for Python?

Posted Aug 31, 2017 3:12 UTC (Thu) by smckay (guest, #103253) [Link]

Homebrew is pretty dang good these days. It's basically Portage on OSX except the default build configuration has binaries available.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds