Ask Your Question

Wing under Enthought Deployment Manager EDM

asked 2018-04-03 14:34:00 -0500

David Smith's avatar

updated 2019-03-13 08:32:57 -0500

Wingware Admin's avatar

How do I get Wing to run under an Enthought Deployment Manager (EDM) context?

Background: we (our company) do our development under edm, which sets up its own Python installation. When I develop under Spyder, startup looks like this

$ which python/usr/bin/python
$ edm shell -e edm1
Starting new shell in EDM environment 'edm1'.
Type 'exit' or 'Ctrl+D' to return.
$ which python
$ spyder

&Now Spyder inherits the new Python location.  I just installed Wing (on a Mac), and it fired up directly, without the mediation of the shell. Looking at the sys.path, I see/System/Library/Frameworks/Python.framework/Versions/2.7/lib/, which is yet another Python location.

How do I get Wing to use the Python environment set by EDM?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-04-03 16:48:00 -0500

Mark Jones's avatar

In place of spyder just launch wing the same way.  I use this alias to make it easier on a mac.  alias wg='/Applications//' If you are on linux, then something similar will work.  Wing will use the default python if you don't specify a python in the project settings.  I use many different virtualenvs so I never specify a python in my wing projects

edit flag offensive delete link more


I like this solution, as it will work when you switch off among EDM environments.

David Smith's avatar David Smith  ( 2018-04-04 14:08:00 -0500 )edit

This requires restarting Wing with each change in env, while setting Python Executable in Project Properties lets you just switch projects.  But either should work.

Wingware Support's avatar Wingware Support  ( 2018-04-04 14:14:00 -0500 )edit

answered 2018-04-03 14:55:00 -0500

Could you try setting the Python Executable in the Project Properties dialog to /Users/smithd91/.edm/envs/edm1/bin/python ?  This is how virtual environments are supported.

edit flag offensive delete link more


Yes, it looks like that worked. I tried it and didn't think it worked because it didn't change the path in my python shell. But then I quit Wing and restarted, and the EDM installation now shows in the path. Thank you.

David Smith's avatar David Smith  ( 2018-04-03 15:58:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-04-03 14:34:00 -0500

Seen: 1,975 times

Last updated: Mar 07 '19