Skip to content

Add setup.py to enable pip install -e .#3

Open
dagangtj wants to merge 1 commit into
mkturkcan:mainfrom
dagangtj:add-setup-py-2
Open

Add setup.py to enable pip install -e .#3
dagangtj wants to merge 1 commit into
mkturkcan:mainfrom
dagangtj:add-setup-py-2

Conversation

@dagangtj

Copy link
Copy Markdown

Fixes #2

Problem

The README instructs users to run pip install -e ., but the repository was missing a setup.py file, causing the installation to fail.

Solution

Added a proper setup.py file with:

  • Package metadata (name, version, description, author, URL)
  • All required dependencies as listed in the README:
    • torch >= 2.7.0
    • torchvision >= 0.22.0
    • tensorrt >= 10.9.0
    • onnx >= 1.20.1
    • onnxsim, scipy, opencv-python, numpy
  • Python 3.11+ requirement
  • Proper package discovery using find_packages()

Testing

Users can now successfully run:

pip install -e .

If you find this contribution helpful, consider sending a tip to:
USDT (TRC20): TJL2uq9nC6aqqGTDSUaUg8KWepSh8htrft

Fixes mkturkcan#2

Added setup.py file with proper package configuration to enable editable installation.
This allows users to run 'pip install -e .' as documented in the README.

Package includes:
- All required dependencies (torch, torchvision, tensorrt, onnx, etc.)
- Python 3.11+ requirement
- Proper package metadata

---
If you find this fix helpful, consider sending a tip to:
USDT (TRC20): TJL2uq9nC6aqqGTDSUaUg8KWepSh8htrft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pip install -e . does not work

1 participant