question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packaging instructions for Debian, Ubuntu, etc.

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

Trying to package poetry for Debian, it is unclear what needs to be done. Usually Python packages come with a setup.py which makes packaging straightforward – but this package does not.

Next stop is the Makefile. Looking at it, it seems like poetry is using poetry to build itself, which creates a circular dependency.

Since the Debian build machines are not allowed to download stuff from the internet at build time, all the vendored dependencies must be in the source tree before the build starts. The package maintainer will probably include it in its version of the source tree.

So I assume what needs to be done in order to bootstrap is:

  • have one command to fetch all dependencies
  • install dependencies
  • use something like $ python -m poetry.console build to break the circular dependency and use poetry from the source tree?

If that is correct, it would be nice to have one command that downloads all dependencies poetry needs to bootstrap itself (but does not install them or poetry immediately).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sinoroccommented, Nov 3, 2020

@venthur Thanks to PEP517 it is pretty standardized now. As @abn mentioned you might want to look at PyPA’s build tool and PEP 517 in general, so that you can solve the packaging process once and for all for all projects that use a PEP 517 conform builder (instead of solving just for one project: poetry).

0reactions
abncommented, Nov 4, 2020

I am going to close this as it seems the original question has been answered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ubuntu-packaging-guide.pdf
Welcome to the Ubuntu Packaging and Development Guide! This is the official place for learning all about Ubuntu Development and packaging.
Read more >
Chapter 7. Basics of the Debian package management system
A Debian "package", or a Debian archive file, contains the executable files, libraries, and documentation associated with a particular suite of program or...
Read more >
Ubuntu and Debian Package Management Essentials
The Debian and Ubuntu package management tools help to keep your system's list of available packages up-to-date. They also provide various ...
Read more >
What is the simplest Debian Packaging Guide? - Ask Ubuntu
deb file. It is suitable for creating .deb files for personal use but not stringent enough if you want to the package to...
Read more >
Install Docker Engine on Debian
Instructions for installing Docker Engine on Debian. ... Update the apt package index and install packages to allow apt to use a repository...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found