Pyinstaller rebuilds exe every time

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Pyinstaller rebuilds exe every time

Thorsten Kampe
Hi,

PyInstaller on Windows keeps rebuilding the executable on every
invocation even if nothing has changed. It claims "Building because
manifest changed".

I'm invoking PyInstaller with
```
pyinstaller --noupx                  ^
            --icon "%iconfile,0"     ^
            --onefile                ^
            --workpath build\windows ^
            --distpath build         ^
            %1
```

[F:\...\script] tcc> mkexe3.btm script.py
228 INFO: PyInstaller: 3.2
229 INFO: Python: 3.5.2
230 INFO: Platform: Windows-10-10.0.10586-SP0
233 INFO: wrote F:\Documents\dev\python\script\script.spec
281 INFO: UPX is available.
284 INFO: Extending PYTHONPATH with paths
['F:\\Documents\\dev\\python\\script', 'F:\\Documents\\dev\\python
\\script']
286 INFO: checking Analysis
362 INFO: checking PYZ
462 INFO: checking PKG
469 INFO: Building because build\windows\script\script.exe.manifest
changed
469 INFO: Building PKG (CArchive) out00-PKG.pkg
2522 INFO: Bootloader F:\PortableApps\Python35\lib\site-packages
\PyInstaller\bootloader\Windows-64bit\run.exe
2522 INFO: checking EXE
2525 INFO: Building because manifest changed
2525 INFO: Building EXE from out00-EXE.toc
2576 INFO: SRCPATH [('\\PortableApps\\Python3x\\python.exe', 0)]
2577 INFO: Updating icons from \PortableApps\Python3x\python.exe, 0
to F:\PortableApps\ConEmu\Data\Temp\tmp5dqk3jc7
2611 INFO: Appending archive to EXE build\script.exe
Stoppuhr 1 aus: 14:43:33  Verstrichene Zeit: 0:00:03.70
Lösche F:\Documents\dev\python\script\script.spec
     1 Datei gelöscht               32,768 Bytes freigegeben

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pyinstaller rebuilds exe every time

Steve Barnes


On 23/10/2016 13:52, Thorsten Kampe wrote:

> Hi,
>
> PyInstaller on Windows keeps rebuilding the executable on every
> invocation even if nothing has changed. It claims "Building because
> manifest changed".
>
> I'm invoking PyInstaller with
> ```
> pyinstaller --noupx                  ^
>             --icon "%iconfile,0"     ^
>             --onefile                ^
>             --workpath build\windows ^
>             --distpath build         ^
>             %1
> ```
>
> [F:\...\script] tcc> mkexe3.btm script.py
> 228 INFO: PyInstaller: 3.2
> 229 INFO: Python: 3.5.2
> 230 INFO: Platform: Windows-10-10.0.10586-SP0
> 233 INFO: wrote F:\Documents\dev\python\script\script.spec
> 281 INFO: UPX is available.
> 284 INFO: Extending PYTHONPATH with paths
> ['F:\\Documents\\dev\\python\\script', 'F:\\Documents\\dev\\python
> \\script']
> 286 INFO: checking Analysis
> 362 INFO: checking PYZ
> 462 INFO: checking PKG
> 469 INFO: Building because build\windows\script\script.exe.manifest
> changed
> 469 INFO: Building PKG (CArchive) out00-PKG.pkg
> 2522 INFO: Bootloader F:\PortableApps\Python35\lib\site-packages
> \PyInstaller\bootloader\Windows-64bit\run.exe
> 2522 INFO: checking EXE
> 2525 INFO: Building because manifest changed
> 2525 INFO: Building EXE from out00-EXE.toc
> 2576 INFO: SRCPATH [('\\PortableApps\\Python3x\\python.exe', 0)]
> 2577 INFO: Updating icons from \PortableApps\Python3x\python.exe, 0
> to F:\PortableApps\ConEmu\Data\Temp\tmp5dqk3jc7
> 2611 INFO: Appending archive to EXE build\script.exe
> Stoppuhr 1 aus: 14:43:33  Verstrichene Zeit: 0:00:03.70
> Lösche F:\Documents\dev\python\script\script.spec
>      1 Datei gelöscht               32,768 Bytes freigegeben
>

Just to be sure have you checked the date/time stamp on the manifest
file? I have had a similar thing with make a few times when any of: the
file had come from somewhere with an incompatible time stamp system
resulting in a file that had a date far in the future, touch had been
used to set a date way into the future, a system crash had corrupted the
file system & (most common) the file had been McAfeed :-(
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pyinstaller rebuilds exe every time

Thorsten Kampe
* Steve Barnes (Mon, 24 Oct 2016 06:03:57 +0000)
>
> On 23/10/2016 13:52, Thorsten Kampe wrote:
> > Hi,
> >
> > PyInstaller on Windows keeps rebuilding the executable on every
> > invocation even if nothing has changed. It claims "Building because
> > manifest changed".
[...]
> Just to be sure have you checked the date/time stamp on the manifest
> file?

Modified time stamp of the manifest file is 6 seconds before the
executable was created. I don't have any On access virus scanner. So
as far as I can tell nothing has "changed".

The question is: "has changed" in regard to what? What is PyInstaller
comparing the manifest file time stamp to?

Thorsten

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pyinstaller rebuilds exe every time

Steve Barnes


On 24/10/2016 09:51, Thorsten Kampe wrote:

> * Steve Barnes (Mon, 24 Oct 2016 06:03:57 +0000)
>>
>> On 23/10/2016 13:52, Thorsten Kampe wrote:
>>> Hi,
>>>
>>> PyInstaller on Windows keeps rebuilding the executable on every
>>> invocation even if nothing has changed. It claims "Building because
>>> manifest changed".
> [...]
>> Just to be sure have you checked the date/time stamp on the manifest
>> file?
>
> Modified time stamp of the manifest file is 6 seconds before the
> executable was created. I don't have any On access virus scanner. So
> as far as I can tell nothing has "changed".
>
> The question is: "has changed" in regard to what? What is PyInstaller
> comparing the manifest file time stamp to?
>
> Thorsten
>

If the time stamp is that close then it suggests that it is being
automatically created, possibly because there isn't one in the source
code...

--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: Pyinstaller rebuilds exe every time

Thorsten Kampe
* Steve Barnes (Mon, 24 Oct 2016 17:14:23 +0000)
>
> If the time stamp is that close then it suggests that it is being
> automatically created, possibly because there isn't one in the source
> code...

I grepped the source for the error and it looks like there are
actually two bugs - one regarding "building PKG" and one regarding
"building EXE".

I opened an issue at Github:
https://github.com/pyinstaller/pyinstaller/issues/2239

Thorsten

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Loading...