Distributing pyc files




















Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. I've started working on a commercial application in Python, and I'm weighing my options for how to distribute the application. Aside from the obvious distribute sources with an appropriate commercial license , I'm considering distributing just the. But I'm not familiar enough with Python's compatibility guarantees to know if this is even workable, much less whether it's a good idea or not.

For example, would a. I've found that. For example, would a file generated with Python 3. Or would a. Primarily, I may have to appease stakeholders who are uncomfortable distributing sources. Just enough of a barrier to keep honest people honest.

You certainly could distribute the. As Cat mentioned, no it would not be compatible with different major version of Python.

It might prevent some people from viewing the source code, but the. Basically if you can compile it, you can decompile it. I've never tried them but someone could still decompile them if they wanted to. Posted by: admin December 4, Leave a comment.

For example, would a. For example, would a file generated with Python 3. Or would a. Primarily, I may have to appease stakeholders who are uncomfortable distributing sources. So, if you want to make pyc-only distributions, you will have to put your compiled files in the same place as the. Thanks, DSM! How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 11 months ago. Active 8 years, 11 months ago. Viewed 3k times. Active 3 years, 8 months ago.

Viewed 1k times. Improve this question. Paul Manta Paul Manta Add a comment. Active Oldest Votes. Improve this answer. Chris Farmiloe Chris Farmiloe By "the compiled python byte-code files are not guaranteed to work across different platforms" do you mean that they might not work from computer to computer, or from Windows to Linux, for example?

It certainly isn't safe across different versions of python, so you still need to ensure they have the same Python running the files anyway. Ignacio Vazquez-Abrams Ignacio Vazquez-Abrams k gold badges silver badges bronze badges.



0コメント

  • 1000 / 1000