Remove ppc from compilation flags in python setup scripts

前端 未结 2 905
[愿得一人]
[愿得一人] 2021-02-04 17:10

I\'m trying to install PIL on an Intel Mac OS X Leopard machine. Unfortunately, \"setup.py build\" thinks it should be compiling for ppc.

gcc -arch ppc -arch i3         


        
2条回答
  •  臣服心动
    2021-02-04 17:27

    The solution that worked for me was:

    ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build

    Just pass the values for the flag right in the command line.

提交回复
热议问题