[New-bugs-announce] [issue35830] building multiple (binary) packages from a single project
report at bugs.python.org
Fri Jan 25 19:55:33 EST 2019
New submission from Stefan Seefeld <stefan at seefeld.name>:
I'm working on a project that I'd like to split into multiple separately installable components. The main component is a command-line tool without any external dependencies. Another component is a GUI frontend that adds some third-party dependencies.
Therefore, I'd like to distribute the code in a single source package, but separate binary packages (so users can install only what they actually need).
I couldn't find any obvious way to support such a scenario with either `distutils` nor `setuptools`. Is there an easy solution to this ? (I'm currently thinking of adding two `setup()` calls to my `setup.py` script. That would then call all commands twice, so I'd need to override the `sdist` command to only build a single (joint) source package.
Is there a better way to achieve what I want ?
assignee: docs at python
components: Distutils, Documentation
nosy: docs at python, dstufft, eric.araujo, stefan
title: building multiple (binary) packages from a single project
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce