cckuailong / py2sec

:snake: py2sec is a Cross-Platform, Fast and Flexible tool to change the .py to .so(Linux and Mac) or .pyd(Win).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cleanup

edwardsun opened this issue · comments

Hi,

Could you please add clean-ups for package builds? Ideally after package building there will only be a "result/package" directory. There can be a flag to retain intermediate steps for debugging purpose if user is interested.

Thanks.

Thx for the suggestion, I add the --release flag to clean up the temp files

Hi. I've just tested the -r parameter. It does not seem to work. In fact, there were only cythonization but no compilation or linking. Could you please take a look?

Sorry, I do not understand your advice. My understanding is you do not want the intermediate files.
So, you want to reduce the screen output details?

Thank you for it.
I delete the temp files at the end of the project
if opts.release: clearTmpFiles()
I tested the python3 py2sec.py -d example -p 3 -r, and I got the right .so files.
Maybe you can try to download the newest version of py2sec.

Well if I remove the '-r' the program still does not generate .so file. But the old version was able to build .so files. Maybe this can give you more clues.

Hi, thank you for that. Maybe you can put the content of tmp_py2sec_build.py here.
What's more, you can run "python3 tmp_py2sec_build.py build_ext" and put the error messages here.
I'll find the bugs. Thank you very much.

It's able to catch the error now. Thx :)

Many thanks. I've not verified it but will close the ticket for now.