Closed amitsaha closed 8 years ago
@amitsaha Can you give me more details regarding this? Were you running envy edit
or envy sync
? It would be helpful if you provide some detail of the package structure for which you were having issues, so that I can reproduce!
Thanks!
Hi @shaunvxc i was running envy sync
. I will share an easy reproducer for you in the next days. But for the moment, you may try with a setup.py which has find_packages()
in it and the package directory is named something other than the package name you use in setup.py
.
@amitsaha can you confirm you were passing envy sync
the package name and not the distribution name?
envy
uses the imp
module to find the location of the package-- so as long as you pass envy
the package name, it should work.
Let me know if otherwise!
@amitsaha can you confirm the above please when you have the chance? Would like to close this assuming the above is correct.
Thanks!
@amitsaha I'm going to close this. Re-open please if you are still having issues.
I could be wrong, but I think
envy
assumes that the package lives in a sub-directory which is of the same name as the package itself (Ref: https://github.com/shaunvxc/envy/blob/c5a08ea6ee4218eb3b66dd97fd1c750faae03dd6/envy/application.py#L99)It's probably easy to reproduce by having a
setup.py
where thepackages_dir
is set to something else other thanname
.