Top "Python-packaging" questions

Packages are namespaces which contain multiple packages and modules themselves.

How to import other Python files?

How do I import other files in Python? How exactly can I import a specific python file like import file.…

python python-import python-module python-packaging
What is __init__.py for?

What is __init__.py for in a Python source directory?

python module package python-packaging
What is setup.py?

Can anyone please explain what setup.py is and how it can be configured or used?

python python-3.x setup.py pypi python-packaging
"pip install --editable ./" vs "python setup.py develop"

Is there any significant difference between pip install -e /path/to/mypackage and the setuptools variant? python /path/to/mypackage/…

python pip setuptools python-packaging
How to import a module from a different folder?

I have a project which I want to structure like this: myproject __init__.py api __init__.py api.py backend __…

python python-3.x python-packaging
How to accomplish relative import in python

stuff/ __init__.py mylib.py Foo/ __init__.py main.py foo/ __init__.py script.py script.py wants to import …

python python-2.x relative-path python-packaging
How do I list the files inside a python wheel?

I'm poking around the various options to setup.py for including non-python files, and they're somewhat less than intuitive. I'd …

python package python-wheel python-packaging
Pip install error missing 'libxml/xmlversion.h'

I need to install the python package xmlsec(https://pypi.python.org/pypi/xmlsec) and when I try running pip …

python python-2.7 pip python-module python-packaging
Relative imports in Python

Hey all -- I am pulling my hair out with relative imports in Python. I've read the documentation 30 times and …

python python-packaging
Right way to set python package with sub-packages

I am trying to set a package with sub-packages in python. Here is the tree structure that I have at …

python python-2.7 python-packaging