aftter upgrading pyInstaller from 2.0 to 2.1 makespec.py can not be called separately from bat file

109 views
Skip to first unread message

Sergey

unread,
Dec 5, 2013, 2:05:44 AM12/5/13
to pyins...@googlegroups.com
Hi,

I've used pyInstaller 2.0 by this method:

python.exe Makespec.py %script%.py --onefile -i icon.ico --name %name% --windowed || exit 1

::--change spec file, generated by makespec--

python.exe Build.py %name%.spec


After makespec generated spec file, my script is fixing id, adding additional files.
After this I call build.py

In pyInstaller 2.1 it is not working, if call makespec, it does nothing
I've looked at main.py in pyInstaller directory.
As I understand, it does not allow to call makespec without building after it:

        # Skip creating .spec when .spec file is supplied
        if args[0].endswith('.spec'):
            spec_file = args[0]
        else:
            spec_file = run_makespec(opts, args)

        run_build(opts, spec_file, pyi_config)

How to call makespec without running build immediately after it?

Regards,
Sergey


Hartmut Goebel

unread,
Dec 10, 2013, 12:36:02 PM12/10/13
to pyins...@googlegroups.com
Am 05.12.2013 08:05, schrieb Sergey:
How to call makespec without running build immediately after it?

python.exe utils/makespec.py %script%.py ....

should work.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/2012-04-compliance-bringt-keine-sicherheit
Blog: http://www.goebel-consult.de/blog/pdf-kommentare-unter-linux-nix-is

Goebel Consult ist Mitglied bei http://www.7-it.de/

Sergey

unread,
Dec 11, 2013, 1:42:12 AM12/11/13
to pyins...@googlegroups.com
In pyInstaller 2.1 makespec.py is located not in utils folder, but in root folder.
And it does not contain code for standalone  run - only classes and functions declarations.
Is it correct or It is something wrong with my installation of pyInstaller?


python.exe utils/makespec.py %script%.py ....

should work.

--
Sergey
Reply all
Reply to author
Forward
0 new messages