jay jayjay
jay jayjay

Reputation: 227

setuptools find_packages returns empty list

When I try to install my package, it doesn't install anything. When I execute find_packages manually, it returns an empty list.

Here is my setup.py file:

from setuptools import setup, find_packages

with open('README.md') as f:
    long_description = f.read()

setup(
    ...

    packages=find_packages(),
    python_requires='>=3.6',

    ...
)

My directory structure is

hackathon-base
|- hackathon
   |- __main__.py
   |- dir1
   |- dir2
|- setup.py

Upvotes: 3

Views: 3608

Answers (1)

Vaebhav
Vaebhav

Reputation: 5032

find_packages internally searchs for __init__.py under the directories/folders

Create an empty __init__.py then re run find_packages

Go through the tutorial here

Upvotes: 8

Related Questions