Falldog / pyconcrete

Protect your python script, encrypt it as .pye and decrypt when import it
Apache License 2.0
702 stars 150 forks source link

Python3.7 link fail at Mac #51

Closed Falldog closed 5 years ago

Falldog commented 5 years ago

python3.7 setup.py install will get link fail

gcc build/temp.macosx-10.9-x86_64-3.7/src/pyconcrete_exe/pyconcrete_exe.o build/temp.macosx-10.9-x86_64-3.7/src/pyconcrete_ext/pyconcrete.o build/temp.macosx-10.9-x86_64-3.7/src/pyconcrete_ext/openaes/src/oaes_base64.o build/temp.macosx-10.9-x86_64-3.7/src/pyconcrete_ext/openaes/src/oaes_lib.o -lpython3.7m -o build/scripts-3.7/pyconcrete
ld: library not found for -lpython3.7m
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1

Try to get link flag for python3.7 python3.7-config --ldflags

-L/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -ldl -framework CoreFoundation

It should add -L/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin for link python3.7m

janjur commented 5 years ago

@Falldog, any actions taken?

Falldog commented 5 years ago

@janjur I had just push a fix, you can give it a shot.