Skip to content

Updates to setup.py file for modern pip installations #1

@appy2806

Description

@appy2806

The current setup.py file uses setuptools.find_packages() only looks for directories that contain an __init__.py file. Looking at the standard structure for theproject:

streamframe/
├── setup.py
└── streamframe/
    └── streamframe.py  <-- No __init__.py here!

I recommend using the "Module" structure, given its a single .py file. Something like this:

from setuptools import setup

setup(
    name='streamframe',
    version='0.1.0',
    py_modules=['streamframe'],  # Use this instead of find_packages()
    install_requires=[
        'jax',
    ],
    # ... rest of your setup ...
) 

This update will ensure that the module is pip installable in the correct format.

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