Tom_Neverwinter

Project insignia DNS compile EXE

Jan 22nd, 2023 (edited)
1,462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.72 KB | None | 0 0
  1. #install based on: https://www.youtube.com/watch?v=XcMd7ZPU8q8 credit to: Natetronn
  2.  
  3. #open a powershell instance in terminal or powershell directly
  4.  
  5. Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
  6.  
  7. [System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
  8.  
  9. [System.Environment]::SetEnvironmentVariable('PYENV_ROOT',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
  10.  
  11. [System.Environment]::SetEnvironmentVariable('PYENV_HOME',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
  12.  
  13. [System.Environment]::SetEnvironmentVariable('path', $env:USERPROFILE + "\.pyenv\pyenv-win\bin;" + $env:USERPROFILE + "\.pyenv\pyenv-win\shims;" + [System.Environment]::GetEnvironmentVariable('path', "User"),"User")
  14.  
  15. #confirm one install in  "enviroment variables"
  16.  
  17. #close powershell instance then open a new instance test by entering
  18.  
  19. pyenv
  20.  
  21. #if it fails you may need to temporarily uninstall other python instances like anaconda or python 3.10
  22.  
  23. #see what versions you can install
  24.  
  25. pyenv install --list
  26.  
  27. #then install the specified version
  28.  
  29. pyenv install 3.9.13
  30.  
  31. #now confirm installed versions
  32.  
  33. pyenv versions
  34.  
  35. #set version of python to be used
  36.  
  37. pyenv global 3.9.13
  38.  
  39. python -V
  40.  
  41. #now to actually coompile the requirtements.txt
  42. #you can open a instance of terminal in the working directory you are using by right clicking and opening a terminal
  43.  
  44. python -m pip install -r requirements.txt nuitka zstandard
  45.  
  46.  
  47. #compile the program
  48. python -m nuitka --standalone --onefile --windows-icon-from-ico=insigniaDNS_icon.ico -o insigniaDNS.exe insigniaDNS.py
Advertisement
Add Comment
Please, Sign In to add comment