Discussion:
[Maya-Python] MayaPy Cython Import Error
Ruchit Bhatt
2017-11-30 05:06:45 UTC
Permalink
Hi,
How to convert python module to *.pyd using cython ?

I am using Maya 2017 Up 4, And in that i installed cython with below step
C:\Program Files\Autodesk\Maya2017\bin>mayapy ez_setup.py
C:\Program Files\Autodesk\Maya2017\bin>mayapy get-pip.py
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install setuptools --upgrade
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython
After that i followed this link Hello Cython in Maya
<https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5>

<https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5>
*Setup.py*

]

*Terminal Error*



*But works fine in script editor*



So how to compile *.py to *.pyd for maya and make a use in scriptEditor ?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-11-30 05:23:25 UTC
Permalink
Post by Ruchit Bhatt
Hi,
How to convert python module to *.pyd using cython ?
I am using Maya 2017 Up 4, And in that i installed cython with below step
C:\Program Files\Autodesk\Maya2017\bin>mayapy ez_setup.py
C:\Program Files\Autodesk\Maya2017\bin>mayapy get-pip.py
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install setuptools --upgrade
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython
It appears that it isn't finding cython in the PYTHONPATH when you are
running mayapy. Can you manually confirm the install location of cython?
Can you also try something like this (sorry if the syntax is wrong. I dont
use windows):

mayapy -c "import cython; print cython"

Presumably if it could find cython on your PYTHONPATH, then it should
compile an extension which could then be imported within Maya.
Post by Ruchit Bhatt
After that i followed this link Hello Cython in Maya
<https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5>
<https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5>
*Setup.py*
[image: Auto Generated Inline Image 1]]
*Terminal Error*
[image: Auto Generated Inline Image 2]
*But works fine in script editor*
[image: Auto Generated Inline Image 3]
So how to compile *.py to *.pyd for maya and make a use in scriptEditor ?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3cCVVrcPj-73WYkPpJuZVDzq5ry_G5UpQuRQqvSNUYCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ruchit Bhatt
2017-11-30 05:49:55 UTC
Permalink
Post by Justin Israel
It appears that it isn't finding cython in the PYTHONPATH when you are
running mayapy. Can you manually confirm the install location of cython?
Can you also try something like this (sorry if the syntax is wrong. I dont
mayapy -c "import cython; print cython"
Presumably if it could find cython on your PYTHONPATH, then it should
compile an extension which could then be imported within Maya.
<Loading Image...>










I think it's weird
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9219a24d-7145-4a78-9311-649ad36abaf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-11-30 06:06:23 UTC
Permalink
Post by Ruchit Bhatt
Post by Justin Israel
It appears that it isn't finding cython in the PYTHONPATH when you are
running mayapy. Can you manually confirm the install location of cython?
Can you also try something like this (sorry if the syntax is wrong. I dont
mayapy -c "import cython; print cython"
Presumably if it could find cython on your PYTHONPATH, then it should
compile an extension which could then be imported within Maya.
<https://lh3.googleusercontent.com/-HRf62yhRxQc/Wh-byM3IutI/AAAAAAAADJA/_ykikt8KzuwME1Oqvg9K5X4_5F9U_sSCQCLcBGAs/s1600/cython%2Bpath.png>
I think it's weird
I should have also suggested you test importing Cython (title case) as that
is what contains the compiler tools and seems to be failing.
--
Post by Ruchit Bhatt
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/9219a24d-7145-4a78-9311-649ad36abaf3%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/9219a24d-7145-4a78-9311-649ad36abaf3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0LvTpQKUXh%2Bt3aj94x9jUobtGASybhK_cege0JKrECgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Marcus Ottosson
2017-11-30 06:20:47 UTC
Permalink
This to me looks like the Cython distributed via pip was compiled for a
different version of Python than the one shipping with Maya. I think the
reason you see the error in the terminal is because the command you ran
makes use of the compiled component of Cython, whereas the import you made
in Maya does not.

I suspect you'll need to do what any compiled library requires, which is to
compile it yourself using the mayapy.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAhecHSbQ4Gp7O0tcxznYnHXZA31cT2XMNLYTStM2hpKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ruchit Bhatt
2017-12-01 08:02:17 UTC
Permalink
From... https://pypi.python.org/pypi/Cython/

i got source-code(Cython-0.27.3.tar.gz).
After that i tried to build for mayapy, And i got this error.


<Loading Image...>


May be environment variable missing or something need to tweak in source
..Any idea how to fix this ??
<https://lh3.googleusercontent.com/-SVlD2pk4Bik/WiELfxUeICI/AAAAAAAADJc/MbLJUIWb0NUkHymhedYOl-_b5ABS_DNrACLcBGAs/s1600/cython%2Bbuild%2Berror.png>
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5b084cf2-4d9a-4de6-9d22-02dac4b41391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-12-01 08:18:45 UTC
Permalink
It either means that you don't have a python dev version installed and the
headers don't exist, or that they are in a place that can't be found and
you need to specify them to distutils by setting certain environment
variables.

As a side note can you avoid posting in screenshot form unless it's
absolutely necessary? It'd hard to read wide text in these captures from
mobile devices and also prevents copy paste. It's better suited for issues
with graphical problems.
Post by Ruchit Bhatt
From... https://pypi.python.org/pypi/Cython/
i got source-code(Cython-0.27.3.tar.gz).
After that i tried to build for mayapy, And i got this error.
<https://lh3.googleusercontent.com/-SVlD2pk4Bik/WiELfxUeICI/AAAAAAAADJc/MbLJUIWb0NUkHymhedYOl-_b5ABS_DNrACLcBGAs/s1600/cython%2Bbuild%2Berror.png>
May be environment variable missing or something need to tweak in source
..Any idea how to fix this ??
<https://lh3.googleusercontent.com/-SVlD2pk4Bik/WiELfxUeICI/AAAAAAAADJc/MbLJUIWb0NUkHymhedYOl-_b5ABS_DNrACLcBGAs/s1600/cython%2Bbuild%2Berror.png>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/5b084cf2-4d9a-4de6-9d22-02dac4b41391%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/5b084cf2-4d9a-4de6-9d22-02dac4b41391%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA11dU9ANRi54JazZjFqibEN%2ByiZDMTNAuBBvfv0cdJs3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ruchit Bhatt
2017-12-01 17:45:00 UTC
Permalink
This post might be inappropriate. Click to display it.
Ruchit Bhatt
2017-12-01 17:47:02 UTC
Permalink
copying build\lib.win-amd64-2.7\cython.py -> build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\pyxbuild.py ->
build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\pyximport.py ->
build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\__init__.py ->
build\bdist.win-amd64\egg\pyximport
byte-compiling build\bdist.win-amd64\egg\Cython\Build\BuildExecutable.py to
BuildExecutable.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Cythonize.py to
Cythonize.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Dependencies.py to
Dependencies.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Distutils.py to
Distutils.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Inline.py to
Inline.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\IpythonMagic.py to
IpythonMagic.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Tests\TestInline.py
to TestInline.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Build\Tests\TestIpythonMagic.py to
TestIpythonMagic.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Build\Tests\TestStripLiterals.py to
TestStripLiterals.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Tests\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\CodeWriter.py to
CodeWriter.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\AnalysedTreeTransforms.py to
AnalysedTreeTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Annotate.py to
Annotate.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\AutoDocTransforms.py to
AutoDocTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Buffer.py to
Buffer.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Builtin.py to
Builtin.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CmdLine.py to
CmdLine.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Code.py to Code.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CodeGeneration.py
to CodeGeneration.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CythonScope.py to
CythonScope.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\DebugFlags.py to
DebugFlags.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Errors.py to
Errors.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\ExprNodes.py to
ExprNodes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\FlowControl.py to
FlowControl.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\FusedNode.py to
FusedNode.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Future.py to
Future.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Interpreter.py to
Interpreter.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Lexicon.py to
Lexicon.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Main.py to Main.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\MemoryView.py to
MemoryView.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\ModuleNode.py to
ModuleNode.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Naming.py to
Naming.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Nodes.py to
Nodes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Optimize.py to
Optimize.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Options.py to
Options.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\ParseTreeTransforms.py to
ParseTreeTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Parsing.py to
Parsing.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Pipeline.py to
Pipeline.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\PyrexTypes.py to
PyrexTypes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Pythran.py to
Pythran.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Scanning.py to
Scanning.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\StringEncoding.py
to StringEncoding.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Symtab.py to
Symtab.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestBuffer.py to
TestBuffer.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestCmdLine.py to
TestCmdLine.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestFlowControl.py to
TestFlowControl.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestGrammar.py to
TestGrammar.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestMemView.py to
TestMemView.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestParseTreeTransforms.py
to TestParseTreeTransforms.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestSignatureMatching.py to
TestSignatureMatching.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestTreeFragment.py to
TestTreeFragment.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestTreePath.py to
TestTreePath.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestTypes.py
to TestTypes.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestUtilityLoad.py to
TestUtilityLoad.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestVisitor.py to
TestVisitor.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Tests\__init__.py
to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\TreeFragment.py to
TreeFragment.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\TreePath.py to
TreePath.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\TypeInference.py
to TypeInference.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\TypeSlots.py to
TypeSlots.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\UtilityCode.py to
UtilityCode.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\UtilNodes.py to
UtilNodes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Version.py to
Version.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Visitor.py to
Visitor.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Coverage.py to Coverage.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\Cygdb.py to
Cygdb.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\DebugWriter.py to
DebugWriter.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\libcython.py to
libcython.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\libpython.py to
libpython.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Debugger\Tests\TestLibCython.py to
TestLibCython.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Debugger\Tests\test_libcython_in_gdb.py to
test_libcython_in_gdb.pyc
byte-compiling
build\bdist.win-amd64\egg\Cython\Debugger\Tests\test_libpython_in_gdb.py to
test_libpython_in_gdb.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\Tests\__init__.py
to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugger\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Debugging.py to
Debugging.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Distutils\build_ext.py to
build_ext.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Distutils\extension.py to
extension.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Distutils\old_build_ext.py
to old_build_ext.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Distutils\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Actions.py to
Actions.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\DFA.py to DFA.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Errors.py to Errors.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Lexicons.py to
Lexicons.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Machines.py to
Machines.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Regexps.py to
Regexps.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Scanners.py to
Scanners.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Timing.py to Timing.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Traditional.py to
Traditional.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\Transitions.py to
Transitions.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Plex\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Runtime\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Shadow.py to Shadow.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\StringIOTree.py to
StringIOTree.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tempita\compat3.py to
compat3.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tempita\_looper.py to
_looper.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tempita\_tempita.py to
_tempita.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tempita\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tests\TestCodeWriter.py to
TestCodeWriter.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tests\TestJediTyper.py to
TestJediTyper.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tests\TestStringIOTree.py
to TestStringIOTree.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tests\xmlrunner.py to
xmlrunner.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Tests\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\TestUtils.py to
TestUtils.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Utility\__init__.py to
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Utils.py to Utils.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\cython.py to cython.pyc
byte-compiling build\bdist.win-amd64\egg\pyximport\pyxbuild.py to
pyxbuild.pyc
byte-compiling build\bdist.win-amd64\egg\pyximport\pyximport.py to
pyximport.pyc
byte-compiling build\bdist.win-amd64\egg\pyximport\__init__.py to
__init__.pyc
creating stub loader for Cython\Plex\Scanners.pyd
creating stub loader for Cython\Plex\Actions.pyd
creating stub loader for Cython\Compiler\Pythran.pyd
creating stub loader for Cython\Compiler\Lexicon.pyd
creating stub loader for Cython\Compiler\Scanning.pyd
creating stub loader for Cython\Compiler\Parsing.pyd
creating stub loader for Cython\Compiler\Visitor.pyd
creating stub loader for Cython\Compiler\FlowControl.pyd
creating stub loader for Cython\Compiler\Code.pyd
creating stub loader for Cython\Runtime\refnanny.pyd
creating stub loader for Cython\Tempita\_tempita.pyd
byte-compiling build\bdist.win-amd64\egg\Cython\Runtime\refnanny.py to
refnanny.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\dependency_links.txt ->
build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\entry_points.txt ->
build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying Cython.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating dist
creating 'dist\Cython-0.27.3-py2.7-win-amd64.egg' and adding
'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing Cython-0.27.3-py2.7-win-amd64.egg
creating c:\program
files\autodesk\maya2017\python\lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg
Extracting Cython-0.27.3-py2.7-win-amd64.egg to c:\program
files\autodesk\maya2017\python\lib\site-packages
Adding Cython 0.27.3 to easy-install.pth file
Installing cython-script.py script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts
Installing cython.exe script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts
Installing cygdb-script.py script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts
Installing cygdb.exe script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts
Installing cythonize-script.py script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts
Installing cythonize.exe script to C:\Program
Files\Autodesk\Maya2017\Python\Scripts

Installed c:\program
files\autodesk\maya2017\python\lib\site-packages\cython-0.27.3-py2.7-win-amd64.egg
Processing dependencies for Cython==0.27.3
Finished processing dependencies for Cython==0.27.3


now how can i extract cython-0.27.3-py2.7-win-amd64.egg ??
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c394de26-50ec-4f0e-a1cf-637109c88db4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ruchit Bhatt
2017-12-01 18:02:40 UTC
Permalink
Using below code i am able to convert *.py to *.pyd. And script editor are
also importing properly. Now tell me how to extract *.egg ? so that i can
use cython without
sys.path.append...Will do more test with PyQt/Pyside. I hope it will work
fine.
Thank you

import sys
sys.path.append("C:\Program
Files\Autodesk\Maya2017\Python\Lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg"
)

import cython
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [
Extension("randomNumber", ["randomNumber.pyx"]),
Extension("additionNumber", ["additionNumber.pyx"]),
]
)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e01ff811-0261-4925-8d6c-01594892067a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-12-01 20:53:11 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...