Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py has maya and PySide(2) as dependencies #89

Open
salvaom opened this issue Nov 16, 2018 · 2 comments
Open

setup.py has maya and PySide(2) as dependencies #89

salvaom opened this issue Nov 16, 2018 · 2 comments

Comments

@salvaom
Copy link

salvaom commented Nov 16, 2018

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).

@salvaom salvaom changed the title setup.py maya and PySide(2) as dependencies setup.py has maya and PySide(2) as dependencies Nov 16, 2018
@mottosso
Copy link
Member

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.

@salvaom
Copy link
Author

salvaom commented Nov 19, 2018

@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.

Thanks anyways, I guess you can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants