How to declare folder dependencies
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have this file system / folder system setup
main_folder/
├─ src/
│ ├─ utils/
│ ├─ script.py
│ ├─ script2.py
│ ├─ script3.py
├─ main.py
What flag should be used in order to tell pyapp that the subfolder src is also needed when packaging?
I am using the following setup to create the .exe
@echo off
set PYAPP_PROJECT_DEPENDENCY_FILE=G:\TheAnimeScripter\requirements-windows.txt
set PYAPP_EXEC_SCRIPT=G:\TheAnimeScripter\main.py
set PYAPP_PYTHON_VERSION=3.11
set PYAPP_PROJECT_NAME=tas
set PYAPP_PROJECT_VERSION=1.9.1
set PYAPP_EXPOSE_ALL_COMMANDS=true
set PYAPP_EXE_NAME=TheAnimeScripter
cargo build --release
And I get the following import errors
G:\pyapp-v0.22.0\target\release .\pyapp.exe
Traceback (most recent call last):
File "C:\Users\nilas\AppData\Local\pyapp\cache\scripts\327278503990150853\main.py", line 30, in <module>
from src.argumentsChecker import argumentChecker
ModuleNotFoundError: No module named 'src'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported Windows build command, PYAPP_EXEC_SCRIPT, and the main.py import of src.argumentsChecker; reproduce the ModuleNotFoundError using the shown main_folder layout. Check pyapp's packaging configuration and documentation for declaring application folders, and consider the issue done when the built executable can import the src package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, cli
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100