Skip to content

How to use package_dir and correctly include docs and extra files in a distribution? #3353

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

You must be logged in to vote

Hi @cdfarrow, can you confirm what is the expected directory structure that you want to have installed in your site-packages directory after you pip install your package?

Is it the case that you want to have the following?

site-packages
└───flexlibs
    ├───__init__.py
    ├───code
    │   ├───__init__.py
    │   ├───FLExInit.py
    │   └───FLExProject.py
    ├───docs
    │   └───flexlibsAPI
    ├───dlls
    │   ├───A.dll
    │   ├───B.dll
    │   └───readme.txt
    └───tests
        ├───test_FLExInit.py
        └───test_FLExProject.py

(This means that you flexlibs/__init__.py file performs the relevant imports otherwise your users will have to do from flexlibs.code import ...)

If that is…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cdfarrow
Comment options

@cdfarrow
Comment options

@abravalheri
Comment options

@cdfarrow
Comment options

@abravalheri
Comment options

Answer selected by cdfarrow
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