Ask Your Question
1

Wing under Enthought Deployment Manager EDM

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

David Smith gravatar image

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

Wingware Admin gravatar image

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
/Users/smithd91/.edm/envs/edm1/bin/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/python27.zip/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7etc., 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
1

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

Mark Jones gravatar image

In place of spyder just launch wing the same way.  I use this alias to make it easier on a mac.  alias wg='/Applications//WingIDE.app/Contents/Resources/wing' 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

Comments

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

David Smith gravatar imageDavid 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 gravatar imageWingware Support ( 2018-04-04 14:14:00 -0500 )edit
1

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

Comments

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 gravatar imageDavid 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

2 followers

Stats

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

Seen: 79 times

Last updated: Mar 07