Jacob,Thanks Igor, Your enthusiasm is in place yet does not provide a solution. I was referring to py2exe with window only in mind. I did look at PyInstaller yet did not try it since a system that compile my python into executables breaks it. In some case my system calls python to invoke scripts it writes on the fly. And unless PyInstaller replicates what conda does and installs the python environment for you then it will break. If you have experience with PyInstaller that contradicts this, please let me know. My choice with conda is justified here since it just transfers the eco system of the application and does not try to change the code into an executable. I believe someone on the list is capable of building a working Ubuntu WxPython package. If this is done I will be able to help upload it to binstar for conda install. Jacob Sent from my iPhone On Jul 5, 2014, at 5:36 PM, Igor Korot <ikor...@gmail.com> wrote:
The only slight problem is that your generated python scripts may
use libraries that are not used anywhere else in your code - in
this case since pyinstaller tries to make as small a binary as
possible it may leave those packages out of your build, this is
simple enough to resolve - simply force ipyinstaller to include
those libraries by either specifying in its build file that they
must be available or simpler to me have an if false:import
or two.
The same approach can be used with py2exe, (on windows only), and
I have done so successfully.
Sorry if it seems that I a sticking my oar in - as a kubuntu user
I agree it would be lovely to simply pip install wxPython,
or even apt-get, - but I do understand that there are a lot of
variants to support and a very fast release cycle which may well
complicate the process.
Gadget/Steve
Jacob,
On Jul 6, 2014 3:36 AM, "Jacob Barhak" <jacob....@gmail.com> wrote:
>
> Thanks Igor,
>
> Yet you still need to get WxPython install on the development machine. Currently I cannot do this with Ubuntu.
Yes, but how can you develop without wxPython?
Or you are using pre-built binary?
>
> If you are suggesting that PyInstaller will install libraries on another system in all cases I plainly do not believe it. Some dependencies are platform dependent.
You are missing the point here.
PyInstaller will make the binary executable (exe file on Windows) which you end user will be able to run.
And if you build it on Windows it will collect Windows dependency. If not you should be able to help.
>
> And if your claims are correct, please create a PyInstaller for WxPython. If it works as you claim I will install on Ubuntu and then create my conda package using those binaries.
The problem here is that I don't have wxPython and you software on my Gentoo box to make such a binary.
So unless I have scripts you wrote I will not be able to do so.
Sorry.
>
> Unless you are capable of doing so as easily as you described, please let those who can resolve the WxPython build issue on Ubuntu help out.
Now let me ask you this - are you trying to build from sources?
Thank you.
The issue with glibc is that each Linux has a version of glibc, and
whatever version you build against, those packages are only usable
with that version or newer. So if you build your package on Ubuntu 14,
you will not be able to use it on Ubuntu 13, for instance. What we do
is build against a very old Linux, namely CentOS 5, which has an old
glibc, so that it is compatible with pretty much every version of
Linux that is used today.
Aaron Meurer