First time here? Check out the FAQ!
1

Running setup.py while Wing is running

One difficulty I have with Wing is that any of the libraries I make and need to test by installing locally can't be done while Wing is running.

For example, let's say I'm making a library called foo with a setup.py. I periodically will need to run python setup.py install to test importing that library from within another (local) project and making sure it's all good.

However, running setup.py results in Python complaining that the foo egg is being used by another process (Wing). I have to shut down Wing, then run setup.py, then relaunch Wing again.

I assume this is because Wing opened the egg/package in order to get symbols for autocomplete, documentation, etc. That's great! But it appears to be holding onto it and not closing when done maybe?

Is this a Wing bug or is there something else I can do to work around this? Thanks!

massung's avatar
41
massung
asked 2021-02-19 10:55:42 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2021-02-19 13:01:32 -0500
edit flag offensive 0 remove flag close merge delete

Comments

This is a Windows specific problem. Are you using a .egg file or is the egg unpacked in a directory ending with .egg?

Wingware Support's avatar Wingware Support (2021-02-19 11:05:49 -0500) edit

Yep, this is on Windows. The egg is a single .egg file. To be clear, it's getting installed to:

C:\Python39\Lib\site-packages\foo-0.1-py3.9.egg

massung's avatar massung (2021-02-19 11:25:45 -0500) edit
add a comment see more comments

1 Answer

0

Thanks, we'll try to fix this bug soon. It's Windows specific because the Windows file system is different than the Mac or Linux filesystems.

Wingware Support's avatar
4k
Wingware Support
answered 2021-02-19 12:54:16 -0500, updated 2021-02-19 12:54:48 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer