1. Ronald Oussoren
  2. py2app
  3. Issues


Issue #135 resolved

Automatic XIB compilation takes long due to time.sleep(1)

Boris Dušek
created an issue

I have 5 XIBs, when running "python setup.py py2app -A", their compilation takes significant time.

I traced it back to py2app/converters/nibfile.py, lines 58 and 72 which are "time.sleep(1)". I.e. for each XIB compilation, 1 second is added to each XIB compilation just to wait for nothing. I tried commenting out these lines and the building of aliased app bundle still works and is now significantly faster due to each XIB being compiled in a fraction of a second (in fact all XIBs together now compile in much less then a second).

I suspect it was added due to some timing issue, but is it still and issue? It makes developing with py2app less comfortable.

Comments (2)

  1. Ronald Oussoren repo owner

    I'm pretty sure I added the the sleeps due to the odd failure described at the top of the file.

    I agree that it would be better to remove the sleep and I'll do that, but may restore the current behavior when the problem with calling nibtool returns.

  2. Log in to comment