Skip to content

Two packages but only one setupc.cfg #3566

Answered by abravalheri
buhtz asked this question in Q&A
Discussion options

You must be logged in to vote

I can not import bit or import qt. I assume there is a missing link between the toml and the cfg file, right? In the setuptools docu I couldn't find a hint about that. There is just a toml-only or cfg-only solution.

You can use both at the same time. To be honest, with the configuration you are showing, things should be working. I can demonstrate that by running the following commands:

rm -rf /tmp/cliqt_demo
mkdir -p /tmp/cliqt_demo/src/bit
mkdir -p /tmp/cliqt_demo/src/qt

touch /tmp/cliqt_demo/src/bit/__init__.py
touch /tmp/cliqt_demo/src/qt/__init__.py

cd /tmp/cliqt_demo

cat <<EOF > setup.cfg
[metadata]
name = bit

[options]
packages =
    bit
    qt
package_dir =
    bit = src/bit

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@buhtz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by buhtz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants