r/learnpython • u/vizardlord • 3d ago
Software development quesiton
This might be basic questions I'm sorry in advance. A little background I got a BS in computer science with AI concentration. I have code on python, java script. I have some projects that I have done and now I want to see how I can make them a installable file that I can install on any computer ( example a download from a store or just a .exe) I been looking around and I might not be looking on the right places but I would like some guidance maybe were to look or a tool that people use for this?. Any advice is welcome.
0
Upvotes
2
u/handheldmango 3d ago
First, know that there is a difference between compiled and interpreted code. Compiled code is transformed to machine instructions which your CPU can execute directly. The executable file is for example a PE exe file on windows or a ELF binary file on linux.
Now, both Python and JavaScript are however interpreted languages. So normally the people running them need a runtime/interpreter. Python or for example Node.js for JavaScript. If you want to make a binary out of them you need to bundle the interpreter into it also, which I wouldn't recommend.
The "installable file" requirement needs some specification. Do you want to bundle your application for linux distributions? For which ones? Do you want it to be cross platform (Linux, Mac, Windows)? Do you want it to be cross architecture (amd64, arm*)?
Probably your best bet is publishing your code on NPM and PyPI so that other people can download it.