<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to compile a Python script for Maya and create a .pyc file in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9843366#M5165</link>
    <description>&lt;P&gt;.pyc files are generated on first import of your Python .py file, just import it from Maya or mayapy and it'll be created in a way that's compatible with Maya; you won't need Anaconda or an external Python, in fact you should probably avoid it as it may differ from the version shipped with Maya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for which versions the .pyc runs with, the thing to keep in mind is which major and possibly minor version of Python Maya ships with; which as Maya 2015-2020 is Python 2.7. For Maya 2021 you'll likely need a separate .pyc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding performance and confidentiality, the only time savings you could hope for is time-to-import, and any .pyc can be turned back into a .py file using something like Decompyle so best not to store your deepest secrets in there.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 18:13:22 GMT</pubDate>
    <dc:creator>negow</dc:creator>
    <dc:date>2020-11-03T18:13:22Z</dc:date>
    <item>
      <title>How to compile a Python script for Maya and create a .pyc file</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9838255#M5164</link>
      <description>&lt;P&gt;I'm writing a Python script for Maya. I would like to compile and distribute it to make the code a little more confidential and to make it a little faster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm wondering is that Maya has different Python versions for each version, so I don't know if I have to compile in different environments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When distributing MELs, I don't have to worry too much about Maya version differences, but for plugins created by compiling Python, I have to worry about Maya versions, right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use anacondaPrompt etc. to create a Python 2.7 .pyc file?&lt;/P&gt;&lt;P&gt;Or is there a way to compile Python scripts using only Maya without using an external environment such as anaconda? If anyone is familiar with it, please let me know.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 15:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9838255#M5164</guid>
      <dc:creator>YASUSHI_EMOTO</dc:creator>
      <dc:date>2020-11-01T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile a Python script for Maya and create a .pyc file</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9843366#M5165</link>
      <description>&lt;P&gt;.pyc files are generated on first import of your Python .py file, just import it from Maya or mayapy and it'll be created in a way that's compatible with Maya; you won't need Anaconda or an external Python, in fact you should probably avoid it as it may differ from the version shipped with Maya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for which versions the .pyc runs with, the thing to keep in mind is which major and possibly minor version of Python Maya ships with; which as Maya 2015-2020 is Python 2.7. For Maya 2021 you'll likely need a separate .pyc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding performance and confidentiality, the only time savings you could hope for is time-to-import, and any .pyc can be turned back into a .py file using something like Decompyle so best not to store your deepest secrets in there.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 18:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9843366#M5165</guid>
      <dc:creator>negow</dc:creator>
      <dc:date>2020-11-03T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile a Python script for Maya and create a .pyc file</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9844180#M5166</link>
      <description>&lt;P&gt;What python version is used within Maya 2021?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 01:20:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9844180#M5166</guid>
      <dc:creator>stuzzz</dc:creator>
      <dc:date>2020-11-04T01:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile a Python script for Maya and create a .pyc file</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9852159#M5167</link>
      <description>&lt;P&gt;Thank you very much. This answer was helpful. I usually develop with MEL, but I'm worried that the source code can be read by anyone. C ++ is difficult for beginners like me. I've heard that 3dsMax has a simple scripting method for obfuscation, but I hope Autodesk can offer some new solutions in Maya as well.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 08:24:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-compile-a-python-script-for-maya-and-create-a-pyc-file/m-p/9852159#M5167</guid>
      <dc:creator>YASUSHI_EMOTO</dc:creator>
      <dc:date>2020-11-07T08:24:50Z</dc:date>
    </item>
  </channel>
</rss>

