Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make issue on Windows (prebuild and postbuild python scripts issue) #1005

Open
ozersa opened this issue Feb 3, 2023 · 2 comments
Open

Make issue on Windows (prebuild and postbuild python scripts issue) #1005

ozersa opened this issue Feb 3, 2023 · 2 comments

Comments

@ozersa
Copy link
Contributor

ozersa commented Feb 3, 2023

On windows side prebuild and post build python script does not able to executed by make. See below.

image

The build succeeded, related binaries are generated but python scripts are not executed.

@mbrossard
Copy link
Contributor

mbrossard commented Feb 3, 2023

I started a CI build for Windows (which does not seem to be using virtualenv, see windows.yml) and it seems to work. I am not familiar enough with Python on Windows, but it does seems like the file association for .py is not working and the python interpreter is not invoked.

You could also edit records/tools/gcc_arm.yaml to replace the .py extensions with .bat.

The limitations of pre_build_script / post_build_script in project_generator. A related issue is project-generator/project_generator#477 because we can't for instance define pre_build_script to be python %rootdir%/tools/pre_build_script.py.

@ozersa
Copy link
Contributor Author

ozersa commented Feb 3, 2023

You build it with "python tools/progen_compile.py..." by github action, and used cmake, it seems work. the issue occurs with step defined in Section 3.2.

The issue seems, make command does not execute python script by shebang directive on windows side, see below screenshot. If I execute it with "shell python XXX.py" the prebuild works, but post build fail in another sub-script...

image

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

No branches or pull requests

2 participants