building installer

76 views
Skip to first unread message

Steve

unread,
May 16, 2012, 6:14:02 PM5/16/12
to spyd...@googlegroups.com
I'm trying to create an installer that bundles in custom widgets and modifications for those widgets.  I was trying to execute create_exe.py.  Is that the correct way to generate the windows installer?  If so I got this Traceback: 
Traceback (most recent call last):
  File "D:\Devel\garmin-spyderlib.v21\create_exe.py", line 46, in <module>
    create_executable()
  File "D:\Devel\garmin-spyderlib.v21\create_exe.py", line 26, in create_executa
ble
    target_dir="%s-win32-sa-%s" % (name, ver))
  File "C:\Python27\lib\site-packages\guidata\disthelpers.py", line 238, in setu
p
    self.add_executable(self.script, self.target_name, icon=self.icon)
  File "C:\Python27\lib\site-packages\guidata\disthelpers.py", line 494, in add_
executable
    from cx_Freeze import Executable
ImportError: No module named cx_Freeze


Any ideas how to fix this?

Thanks,
Steve

Carlos Córdoba

unread,
May 16, 2012, 8:15:19 PM5/16/12
to spyd...@googlegroups.com
It seems you need to install cx_freeze to create the installer. I've never used it so the only thing I can tell you is that you can download it here:

http://cx-freeze.sourceforge.net/

Cheers,
Carlos

2012/5/16 Steve <steve.f....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/kQRxRXL6j0kJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.

Pierre Raybaut

unread,
May 17, 2012, 11:17:12 AM5/17/12
to spyd...@googlegroups.com
Running create_exe.py will create the portable version of Spyder (only
tested on Windows, could work theoretically on Linux but would require
some debugging), a.k.a. the stand-alone Spyder executable.

If you want to build the Spyder Windows installer (NSIS installer),
know that this is nothing but a Python(x,y) plugin, so either you
clone the whole Python(x,y) repository (huge... not a good idea) or
-recommended- you clone the pythonxy-spyder repository which is a fork
I made to be able to build this installer without having the whole
Python(x,y) repo with me all the time:
http://code.google.com/p/spyderlib/source/checkout?repo=pythonxy-spyder

HTH
Pierre

2012/5/17 Steve <steve.f....@gmail.com>:

Steve

unread,
May 17, 2012, 11:46:24 AM5/17/12
to spyd...@googlegroups.com
Ahh.. bummer.  That sounds like way more work than I want.

Hmm.. Maybe pip install guidata doesn't have all the dependencies set up properly.  The traceback make it appears it's the guidata code trying to import cx_freeze, meaning its pip installer should know to download the sub package.  Maybe it's optional and this should actually be a spyder dependency of some sort?  Is there a way to handle optional dependencies through pip?  It would be nice if spyder had a script or some method to easily get all of its dependencies.  This issue could be handled there even if it is technically the fault of guidata.  I'll give up on this approach since it won't do quite what I was looking for.

Thanks!
Steve


On Thursday, May 17, 2012 10:17:12 AM UTC-5, Pierre Raybaut wrote:
Running create_exe.py will create the portable version of Spyder (only
tested on Windows, could work theoretically on Linux but would require
some debugging), a.k.a. the stand-alone Spyder executable.

If you want to build the Spyder Windows installer (NSIS installer),
know that this is nothing but a Python(x,y) plugin, so either you
clone the whole Python(x,y) repository (huge... not a good idea) or
-recommended- you clone the pythonxy-spyder repository which is a fork
I made to be able to build this installer without having the whole
Python(x,y) repo with me all the time:
http://code.google.com/p/spyderlib/source/checkout?repo=pythonxy-spyder

HTH
Pierre

2012/5/17 Steve:
> spyderlib+unsubscribe@googlegroups.com.

Pierre Raybaut

unread,
May 17, 2012, 11:49:41 AM5/17/12
to spyd...@googlegroups.com
If you are still trying to build the Windows installer, you don't need
to install `guidata` at all.

2012/5/17 Steve <steve.f....@gmail.com>:
>> > spyderlib+...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/spyderlib?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spyderlib/-/e3as9lWvhx8J.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to
> spyderlib+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages