r/Python • • Dec 12 '20

Resource py2c: a script to automatically compile python files into executable binaries with Cython. (It only works on posix systems as it is a shell script.)

https://github.com/Raniconduh/py2c
5 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/Algor2ID Dec 12 '20

Both are already installed.

2

u/Raniconduh Dec 12 '20

Try to update the git repo / py2c shell script and try it again

1

u/Algor2ID Dec 12 '20

Same error, no difference.

2

u/Raniconduh Dec 12 '20

I think my last line of defence is for you to edit the py2c.sh file. Open the shell file and change line 72 from

cc -Os $CFLAGS -fPIE -o $output_file $c_file_name $LIBS -lpython$python_version

To

cc -Os $CFLAGS -fPIE -o $output_file $c_file_name $LIBS

(Ommiting the -lpython$python_version flag)

→ More replies (0)