Skip to content

package_dir in setup.cfg #1259

@hectormartinezdev

Description

@hectormartinezdev

Setuptools version: 38.4.0
Python version: 2.7.12
Ubuntu version: 16.04

Hey! I'm moving all my options from setup.py to setup.cfg so I can have a clean setup.py:

"""Minimal setup.py.""" from setuptools import setup from setuptools.config import read_configuration conf_dict = read_configuration('setup.cfg') setup() 

But I'm having a problem with the package_dir option.

My package lives inside src folder and while I can do package_dir={"":"src"} in the setup.py, but I can't use it properly in the setup.cfg.

What I tried so far? (I tried more combinations, but they give an error)

[options] package_dir = . = src 
[options] package_dir = "" = "src" 
[options] package_dir = "." = src 

With this options, when I run python setup.py egg_info it leads to.. "package directory <package_name> not found".

Any insight? Thank you :D

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