Debian Install Python Module Without Pip

by andri_ch Last Updated January 18, 2019 14:02 PM

This question tries to complement this one .I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python dependencies which are not in debian/ubuntu repositories(packed as debian packages too)

Solution #1:
build the modules from PyPI right into my debian package.

The Python Package Index (PyPI) hosts thousands of third-party modules for Python and you can install any of these modules using the pip package manager. Installing Pip on Debian 9 is really an easy task, just follow the steps below carefully and you should have pip installed on a Debian 9 VPS in a few minutes.

Solution #2:
create debian packages for all PyPI modules I need using stdeb and add them to debian/ubuntu repositories.

I actually need a Solution #3 because I want to install PyPI dependencies when I install my debian package, preferably into a virtualenv! Net tools lag switch.

Arema manual for railway engineering chapter 1 - part 5 pipelines. Chapters are grouped into four general categories, each in a separate volume: Track * Structures * Infrastructure and Passenger * Systems Management. Current Edition - 2017 Released each April - Annual Publication The Manual for Railway Engineering (MRE) is an annual publication released every April. The Manual consists of more than 5,000 pages of railway engineering reference material, the recommended practices for the industry. It contains principles, data, specifications, plans and economics pertaining to the engineering, design and construction of the fixed plant of railways (except signals and communications), and allied services and facilities. The material is developed by AREMA technical committees and is published as a guide to railways in establishing their individual policies and practices relative to the subjects, activities and facilities covered in the Manual, with the aim of assisting them to engineer and construct a railway plant which will have inherent qualities of safe and economical operation as well as low maintenance cost.

What would be Solution #3? Do I need to tweak DEBIAN/preinst maintainer script?

Tags : package-managementpythondebian

I think you just need to add the relevant command line code to the postinst script in the .deb package. Found in this answer, more details at the official debian guide.

I've spoken with some maintainers at the Debian IRC channel irc://irc.debian.org#debian-mentors, asking for the exact same thing, and the general consensus was:

Debian Pip Not Found

Solution #1:

Game valkyrie profile 2 for pc. Ignissacer29 rates this game: 3/5. Valkyrie Profile 2 is the sequel to Valkyrie Profile for the Playstation. In it, instead of Lenneth, players take on the role of Silmeria- a Valkyrie trapped in the body of a. The New Valkyrie Profile Gets First Trailer, Is Indeed a Mobile Game. Valkyrie Anatomia: The Origin launches this spring on iPhone, iPad, and Android. Valkyrie Profile: Lenneth is a solid port of a one-of-a-kind role-playing game that is endlessly appealing to genre fans who are looking for something different, but it's a bit too dense for. The result is Valkyrie Profile 2: Silmeria, a more conventional RPG highlighted by fewer noteworthy features or, in other words, a game that’s entertaining, but not as good as it could have been. Sep 26, 2006  For Valkyrie Profile 2: Silmeria on the PlayStation 2, GameFAQs has 20 FAQs (game guides and walkthroughs).

Integrating dependencies in your package by copying their source files over as a single codebase is very frowned upon. It would defeat the purpose of a packaging system that handles dependencies, updates, versioning, etc.

Solution #3:

Downloading non-debian packages on-the-fly when installing a binary (.deb) is a serious security risk, definitely a no-no. You wouldn't even be able to inspect the dependencies by extracting the deb, because they are downloaded and installed at install time. It's an approach that completely bypass the repositories system. No concerned user would be happy with a package that, behind the scenes (and as root, remember!), downloads additional untrusted software from untrusted sources. Yes, that would require fiddling with DEBIAN/postinst (or preinst) and issuing a wget (or, in your case, pip install), and that is the approach taken by Flash, Oracle Java, Steam and others. But that is proprietary, closed source software, so their security is none anyway.

Solution #1.5:

You didn't mention it, but you could integrate the dependencies only at build time, ie, in the source package (the .orig.tar.gz, .debian.tar.gz, .dsc triad), by downloading from PyPi when creating the 'binary' package (the .deb). The instructions for the pip install would go into debian/rules (notice the lowercase debian, as opposed to the binary package), and would be executed when you issue debuild or dpkg-buildpackage.

This is a middle-ground between #1 and #3. It mitigates (but not solve!) some of the issues of #3: at least you can inspect the final product, and the .deb would not require internet access at install time. All the risks and burdens are transferred from final user to the package maintainer. But, has the same problems as #1, as it bypasses most of the packaging system infrastructure. Afterall, handling dependencies (versions, updates, requirements, conflicts) is why dpkg/aptwas created in the first place! :)

Solution #2:

The One True Right Way™. You create debian packages for your dependencies, list them as requirements in your package, and ship all the .debs or source packages.

From there, you have a number of options:

  • Submit the source packages, both your software and its dependencies, for inclusion to Debian. If accepted, they would be automatically available to all Debian users, including all derivatives like Ubuntu.

  • Upload the source packages to Launchpad, thus creating a PPA that any Ubuntu user (and its derivatives like Linux Mint) could easily add and install

  • Host your own debian repository in your website, that users from any Debian-based system could add to their /etc/apt/sources.list.d and use the apt infrastructure to download, install and keep updated, (like the above!)

  • Host the .deb files for direct download and install. No apt or automatic updates involved thought.

As for how to package your PyPi dependencies (and your python software too!), there are a number of tools and references that make the process easy:

Create python module
  • stdeb, as you mentioned. Oldie and goodie.

  • Pybuild, a new, amazing tool from Debian that supersedes stdeb.

And many useful references:

Need help? Check those out:

They don't, is like cpan in perl, if you have in repositories , you may install with apt-get , if not you may install with pip , the difference should be that pip install in /usr/local.

To install with pip you may do:

Free Janome Digitizer Pro. Janome Digitizer 1000. Janome Digitizer 10000. Using 'janome digitizer software' crack, key, serial numbers, registration codes is illegal. Janome Digitizer Pro MB $1,449.00. Embrilliance StitchArtist Level 2 Machine. Janome Digitizer MBX Version 4.0 Software. Janome digitizer pro software. Digitizer janome torrent free downloads, janome digitizer mb torrent, janome 234 d, janome tutorial torrent - software for free at freeware freedownload. Free Janome Digitizer Pro. Free Janome Digitizer Mb. Using 'free janome digitizer pro' crack, key, serial numbers, registration codes is illegal. Janome+digitizer+pro+torrent serial, janome+digitizer+pro+torrent mediafire, janome+digitizer+pro+torrent crack, janome+digitizer+pro+torrent keygen, full download. Janome Digitizer Pro; Janome.Freeware only janome digitizer jr Download, digitizer jr gratis janome, janome digitizer mb, digitizer janome torrent and more. Pro facebook hack v 1.5 by hacker zmaim knuckledust torrent.

A High Gain Yagi Wi-Fi Antenna. Build this wi-fi antenna when you want results FAST and have just a few inexpensive tools and supplies available. It will greatly extend your ability to reach wi fi access points - well beyond the limits of the dipoles supplied with most routers and some wireless adapters. Build yagi antenna wifi.

for example:

There is pypi2deb to get a package from pypi and make it into a deb package.

Related Questions

Ansible from ppa won't install python-related packages

Updated March 05, 2017 10:02 AM

debian apt install broken after deleting python

Updated April 24, 2019 11:02 AM

Python Package

packaging python program as debian

Updated September 28, 2017 10:02 AM

Valid characters in field identifiers of binary package control file

Updated October 14, 2017 14:02 PM

Debian packages in private repository not visible in Muon

Updated February 06, 2018 09:02 AM
Active4 years, 10 months ago

I'm trying to install pip or setup tools form python 3.2 in debian 6.

First case:

apt-get install python3-pip..OK

python3 easy_install.py webob

Second case: from http://pypi.python.org/pypi/distribute#installation-instructions

python3 distribute_setup.py

Third case: from http://pypi.python.org/pypi/distribute#installation-instructionstar -xzvf distribute-0.6.28.tar.gzcd distribute-0.6.28python3 setup.py install

zlib1g-dev installed

Help me please

quanta
44.2k15 gold badges118 silver badges199 bronze badges

Debian Install Python Module Without Pipe

atomAlteraatomAltera

Python Modules List

1 Answer

Install Pip In Debian

Did you install zlib1g-dev after your Python was installed? If zlib was not available when Python was installed, it would have been left out. You can confirm by opening a Python shell and attempting to import zlib, which I expect will fail. If you're sure zlib1g-dev is installed, re-install Python.

Debian Install Python Module Without Pipeline

Derek ShockeyDerek Shockey

Not the answer you're looking for? Browse other questions tagged debianpythondebian-squeeze or ask your own question.