You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because setup.py imports capture.py, in order to use it you need to be in Maya. Is there any way to fix this?
I know for sphinx documentation normally you would use mock.MagicMock to avoid this kind of issues. Is it possible to add them to the setup.py? That way __version__ can still be imported dynamically and Maya and PySide(2) dependencies are replaced by mock in python 2 (since mock is a standard library in py3).
The text was updated successfully, but these errors were encountered:
salvaom
changed the title
setup.py maya and PySide(2) as dependencies
setup.py has maya and PySide(2) as dependencies
Nov 16, 2018
Hi @salvaom, I don't think you need to be in the Maya GUI, but rather use mayapy instead of python.
$ #python setup.py
$ mayapy setup.py
Since the project depends on Maya, it seems fair to require Maya to install. Furthermore, you may not actually need the setup.py, you can also download or copy just capture.py. It doesn't have any dependencies.
@mottosso I found this while installing it with an automatic batch deploy system (written with Pyblish!) to setup and install packages and it runs on the OS, not from a DCC, but it's really not that important.
Because
setup.py
importscapture.py
, in order to use it you need to be in Maya. Is there any way to fix this?I know for sphinx documentation normally you would use
mock.MagicMock
to avoid this kind of issues. Is it possible to add them to thesetup.py
? That way__version__
can still be imported dynamically and Maya and PySide(2) dependencies are replaced bymock
in python 2 (sincemock
is a standard library in py3).The text was updated successfully, but these errors were encountered: