Creating a Python Wheel (.whl) - pathfinder-analytics-uk/dab_project GitHub Wiki
Links and Resources
Commands
Install setuptools and wheel in your virtual environment
pip install setuptools wheel
Building a wheel
MacOS/Linux
python3 setup.py bdist_wheel
Windows
python setup.py bdist_wheel
Installing the wheel
pip install dist/*.whl
Project Files
setup.py
from setuptools import setup, find_packages
setup(
name="dab_project",
version="0.0.1",
description="This contains the code in the ./src directory of the project",
author="Your Name",
packages=find_packages(where="./src"),
package_dir={"":"./src"},
install_requires=["setuptools"]
)
scratch/module_imports.py
import sys
import os
sys.path.append(os.getcwd())
from citibike.citibike_utils import *