Category "setuptools"

How to get `setup.cfg` metadata at the command line (Python)

When you have a setup.py file, you can get the name of the package via the command: C:\some\dir>python setup.py --name And this would print the name of the

Trying to read __version__ with setuptools (setup.py) results in FileNotFoundError during build

EDIT: See answer below for explanation of my mistake, and the solution. I was trying to follow the instructions in @dnozay's answer on how to read __version__ i

Dependencies (requirements) for setting up, testing, and installing a Python library

I'm writing a Python package to be distributed and installed via PyPi.org. There are plenty of examples out there, but I can't get my mind wrapped around the pr

Using git submodules with python

I've read a lot of blog posts and questions on this site about the usage of git submodules and still have no idea how to better use them with python. I mean, wh

How to use Numba extension in setup.py?

I try to use the Numba for some fast calculations. I got the following issue while creating a package that use a Numba extension. I did similar things as sugges

Correct use of PEP 508 environment markers in setup.cfg

I am trying to make use of PEP 496 -- Environment Markers and PEP 508 -- Dependency specification for Python Software Packages by specifying dependencies that o

How to make setuptools clone git dependencies recursively?

I want to let setuptools install Phoenix in my project and thus added setup( ... dependency_links = [ "git+https://github.com/wxWidgets/Phoenix

Offline installation of dependent python modules without PIP

Edit: This is not a duplicate of Python offline package installation as the answer require 'pip' to be present. My premise is when 'pip' is not available. My p

Is `setup.cfg` deprecated?

It's not completely clear to me, what is the status of setup.cfg. I am looking for solutions for my other question about PEP 508 environment markers, and I beca

Difference between extras_require() and install_requires() in setup.py?

I am trying to understand the difference between extras_require() and install_requires() in setup.py but couldn't get it. Both are used for installing Python de

setup.cfg declaring console_scripts errors with "Entry points must be listed in groups"

I'm trying to configure setuptools to create a console entry point for my package, following the docs, and ending up with the following config: [options.entry_p

How to write setup.py to include a Git repository as a dependency

I am trying to write setup.py for my package. My package needs to specify a dependency on another Git repository. This is what I have so far: from setuptools im

Testing Python C libraries - get build path

When using setuptools/distutils to build C libraries in Python $ python setup.py build the *.so/*.pyd files are placed in build/lib.win32-2.7 (or equivalent)

Install modules with setup.py and setup.cfg

I have the following directory structure: /modules/ /modules/setup.py /modules/setup.cfg /modules/module1/ /modules/module1/__init__.py /modules/module1/tool1

amundsen-databuilder : 'extras_require' must be a dictionary error

When trying to install Setup.py am getting the following error: 'extras_require' must be a dictionary whose values are strings or lists of strings containing v

How do I install an old version of Django on virtualenv?

I want to install some specific version of a package (in this case Django) inside the virtual environment. I can't figure it out. I'm on Windows XP, and I creat