Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Parent Directories in Manifest.in

Tags:

python

I know MANIFEST.in recognizes relative paths. However, can I use relative paths that point to directories outside of the project?

For example:

/home
    /random_dir
    /python_project
        MANIFEST.in
        setup.py
        /packages

And then inside MANIFEST.in

graft ../random_dir/

If not, is there an alternative way of including such directories other than just copying and pasting the directory into the project?

like image 266
user810973 Avatar asked Sep 25 '12 12:09

user810973


People also ask

What is Sdist?

Source Distribution (or “sdist”) A distribution format (usually generated using python setup.py sdist ) that provides metadata and the essential source files needed for installing by a tool like pip, or for generating a Built Distribution. System Package.

What is MANIFEST in used for?

The MANIFEST.in file contains commands that allow you to discover and manipulate lists of files. There are many commands that can be used with different objectives, but you should try to not make your MANIFEST.in file too fine grained.

What is setup CFG Python?

The setup. cfg is an ini file, containing option defaults for setup.py commands. You can pretty much specify every keyword we used in the setup.py file in the new setup. cfg file and simply use the setup.py file as the command line interface.

What do you put in setup py?

The setup.py file may be the most significant file that should be placed at the root of the Python project directory. It primarily serves two purposes: It includes choices and metadata about the program, such as the package name, version, author, license, minimal dependencies, entry points, data files, and so on.


1 Answers

I tested it for you . It seem to not want to go any lower than the project root.

Use a symlink instead. Depending on the data and your workstructure, a git submodule could solve your situation better.

like image 147
Daniel Avatar answered Sep 21 '22 00:09

Daniel