0

I was trying to "pip install pyinstaller" on my Mountain Lion. It failed with

setup.py is not yet supposed to work. Please Use PyInstaller without installation.

There is a ticket for this (http://www.pyinstaller.org/ticket/629) but not helpful.

I was using pythonepd 7.1.

Hailiang Zhang
  • 17,604
  • 23
  • 71
  • 117

2 Answers2

2

As it says "it is not yet supposed to work" - if you read the documents you will find that you just unzip/unpack it into a local directory and run it from there.

You are not supposed to run setup.py in pyinstaller at all - see here for how to set up pyinstaller. Once installed and on your path you run by typing pyinstaller your_main.py in your project directory. You may have to generate a specification file and edit it for things to work correctly - See the documentation!

Steve Barnes
  • 27,618
  • 6
  • 63
  • 73
  • Did you mean I should change the building directory (pip -b)? The default seems to be under "/private/tmp". Where should I change it to? The "pyinstaller" documents seem not talk about this. – Hailiang Zhang Aug 10 '13 at 18:37
  • Also, in the "setup.py" script in the temprory build directory, the very first line is "raise SystemExit("\nsetup.py is not yet supposed to work. " "Please Use PyInstaller without installation.\n")", which seems that this code should never be executated. – Hailiang Zhang Aug 10 '13 at 18:42
  • No it is not - it says that it is not - see amended answer above. – Steve Barnes Aug 10 '13 at 18:56
  • Thanks! I manually downloaded the package and invoked pyinstaller.py explicitly with python, and it seems working fine. At least on my machine, "pip install pyinstaller" will attempt to run setup.py, which may not be supported yet (I could be wrong). – Hailiang Zhang Aug 11 '13 at 00:10
  • You are correct - they are working on it but it has a lower priority than other issues at the moment. – Steve Barnes Aug 11 '13 at 08:23
0

I had this error before and installing the development version helped when all else did not.

Slidon
  • 393
  • 2
  • 3
  • 16