Skip to content

Unnecessary files included with pip install #270

Closed
@chris-mcdo

Description

@chris-mcdo

Versions: Ubuntu 20.04, python 3.9, pypandoc 1.7.5

Using pip install pypandoc creates the following files in my site-packages directory:

    site-packages/LICENSE
    site-packages/README.md
    site-packages/examples/services.py
    site-packages/filter_test.md
    site-packages/pypandoc/files/COPYRIGHT.txt
    site-packages/pypandoc/files/pandoc.exe
    site-packages/pypandoc-1.7.5.dist-info/*
    site-packages/pypandoc/*
    site-packages/tests.py

In other words, quite a few files are outside the package directories (pypandoc/* and pypandoc-*.dist-info).

This creates a few problems:

  • The examples/ directory looks like an installed package.
  • The tests.py file in site-packages broke my pytest tests (due to some sort of name collision). This took a while to debug, since I don't expect installing packages to interfere with tests.
  • The LICENCE and README are confusing (which package do they belong to?) and are already present in the pypandoc-1.7.5.dist-info directory.

First, it seems preferable to keep all package files in the pypandoc/* and pypandoc-*.dist-info directories (unless absolutely necessary).

Second, the file pypandoc/files/pandoc.exe is useless to me (on linux), and is very(!) large (112MB). Maybe it could be made optional?

Thanks for reading! Please let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions