Hi all,

I do not own a mac, but I would like to build a simple wxpython app for mac 
osx.

I thought that one way to do this is to build on Travis-CI using their mac 
environment, this seems to work, but resulting executables dont seem to 
work.

I have made a simple example wxpython app here: 
https://github.com/BjornFJohansson/macapp

The main file is hw.py which only contains this :

#!/usr/bin/env python
import wx

app = wx.App(False)  # Create a new app, don't redirect stdout/stderr to a 
window.
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level 
window.
frame.Show(True)     # Show the frame.
app.MainLoop()


This program is meant to only show a frame with "Hello world". This works 
well on my development machine (ubuntu 14.10).

My travis.yml <https://travis-ci.org/BjornFJohansson/macapp> look like 
below. Basically I update xctool and install python and wxpython with brew. 
wxpython seems to install fine. I use pip to install pyinstaller.
Then I run pyinstaller on the hw.py file. The resulting executable is an 
executable and an .app which is a folder. I turn this folder into a dmg 
using hdiutil in order to deploy the .app
to github releases: https://github.com/BjornFJohansson/macapp/releases.

My problem is that the resulting executable and dmg does not seem to work. 
Can someone perhaps give me a hint why?

Pyinstaller on travis <https://travis-ci.org/BjornFJohansson/macapp> gives 
me this message:

"168 WARNING: You are running 64-bit Python: created binaries will only 
work on Mac OS X 10.6+.

If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with this 
command:
 

VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 
/usr/local/opt/python/bin/python2.7"

The computer I tested the dmg and the executable on is 10.6 snow leopard, 
but it didnt work anyway.




os:
- osx
language: objective-c
python:
- '2.7'
before_install:
- which python
- brew update
- brew outdated xctool || brew upgrade xctool
- brew install python --framework 
- which python
- brew install wxpython
- python -c "import wx; print wx.__version__"
- pip install pyinstaller
- pyinstaller --noconsole --onefile hw.py
- ls
- ls dist/
- hdiutil create dist/hw.dmg -srcfolder dist/ -ov
install: true
deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: 
VK1oVWQCRomgcFNVua00B3YSsotezzU1p6/fh73/0vwQFzVMolVnAsnfSq6EAwIcJvakU0TI9pqZR+0S3PKnUs+Kn3Ar8OwQ88t2azZNwewBfKua3tM2/7BF4y7O0gOtN1F29Yxyu0zPInIVY17BqGygibQ1kthBTm+tj3YyNW8=
  file: 
    - "dist/hw"
    - "dist/hw.dmg"
  on:
    tags: true
    all_branches: true
    repo: BjornFJohansson/macapp



This seems to work

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to