[go: up one dir, main page]

Menu

#53 install in cmd with no interaction

1.0
closed
nobody
None
2017-05-16
2017-05-11
thiolliere
No

I want to install pygobject in appveyor for packaging my app with pyinstaller

I found that setup.bat can take arguments.
I launch setup.bat mypathtopython34 GTK
and I have set sourcepath to pygi-aio directory
but I get errors (log are in attachment)

is there a way to do that. Have you an idea what am doing wrong.

the code in appveyor:

mklink "C:\Program Files\7-Zip\7zr.exe" "C:\Program Files\7-Zip\7z.exe"

appveyor DownloadFile "https://sourceforge.net/projects/pygobjectwin32/files/pygi-aio-3.18.2_rev12-setup_549872deadabb77a91efbc56c50fe15f969e5681.exe/download" -FileName "pygi-aio-setup.exe"
mkdir pygi-aio-setup
cd pygi-aio-setup
set SOURCEPATH=%cd%
7z x ..\pygi-aio-setup.exe
cd setup
rm 7zr.exe
7z x ..\setup.exe
set GIR=True
setup.bat C:\Python34 GTK
mklink /D C:\Python34\share C:\Python34\Lib\site-packages\gnome\share
cd ..\..
1 Attachments

Discussion

  • tumagonx

    tumagonx - 2017-05-11

    I think the unintended arguments is for setup.exe not for setup.bat directly.

    (You could see in zsetup.txt there is some preparation)

     
  • thiolliere

    thiolliere - 2017-05-15

    passing argument to setup.exe has no effect.
    But I finally have something that works.

    I launch setup.bat with rcmd.exe: rcmd.exe /c setup.bat C:\Python34 GTK
    there is still some warning about file not found etc... (but I believe the same are raised in the GUI application) and it exits correctly.

    if some people are interested the whole script for appveyor is:

    appveyor DownloadFile "https://sourceforge.net/projects/pygobjectwin32/files/pygi-aio-3.18.2_rev12-setup_549872deadabb77a91efbc56c50fe15f969e5681.exe/download" -FileName "pygi-aio-setup.exe"
    
    mkdir pygi-aio-setup
    cd pygi-aio-setup
    set SOURCEPATH=%cd%
    
    7z.exe x ..\pygi-aio-setup.exe
    cd setup
    del 7zr.exe
    7z.exe x ..\setup.exe
    set GIR=True
    rcmd.exe /c setup.bat C:\Python34 GTK
    mklink /D C:\Python34\share C:\Python34\Lib\site-packages\gnome\share
    cd ..\..
    

    I don't know how to close the ticket

     

    Last edit: thiolliere 2017-05-15
  • tumagonx

    tumagonx - 2017-05-16

    Glad you work it out, took me a while to understand why you try to do it that way :)

     
  • tumagonx

    tumagonx - 2017-05-16
    • status: open --> closed
     

Log in to post a comment.