Currently, when using rye init --script project1 to create a project, packages must be manually added to the Python path using commands like PYTHONPATH=$PYTHONPATH:/path/to/package rye run project1. This approach becomes cumbersome and less scalable as the number of packages grows.
Proposal:
It would greatly enhance user experience and project management if rye init --script project1 automatically included all packages within the project’s directory structure. By doing so, users wouldn’t need to manage PYTHONPATH manually for each package addition.
Example Scenario:
Current Method:
rye init --script project1
PYTHONPATH=$PYTHONPATH:/path/to/package rye run project1
Proposed Method:
rye init --script project1
rye run project1 # Automatically includes packages within the project directory
Request for Feedback:
Additionally, if there are better practices or features within Rye that address efficient management of PYTHONPATH in projects, I would appreciate guidance on how to utilize them effectively.
This enhancement would streamline the workflow and improve scalability for projects utilizing rye.
Thank you for considering this suggestion to further enhance the functionality of rye.
Currently, when using
rye init --script project1
to create a project, packages must be manually added to the Python path using commands likePYTHONPATH=$PYTHONPATH:/path/to/package rye run project1
. This approach becomes cumbersome and less scalable as the number of packages grows.Proposal:
It would greatly enhance user experience and project management if
rye init --script project1
automatically included all packages within the project’s directory structure. By doing so, users wouldn’t need to managePYTHONPATH
manually for each package addition.Example Scenario:
Current Method:
Proposed Method:
Request for Feedback:
Additionally, if there are better practices or features within Rye that address efficient management of
PYTHONPATH
in projects, I would appreciate guidance on how to utilize them effectively.This enhancement would streamline the workflow and improve scalability for projects utilizing rye.
Thank you for considering this suggestion to further enhance the functionality of rye.