Skip to main content

Bundles everything in an Anaconda environment and creates an installer.

Project description

Bundles everything in an Anaconda environment and creates an installer.

Tested with Anaconda3, Python 3.9.16, Windows 10

All your py-files and any other file you want to add to your app need to be in the ROOT of your env.

pip install env2installer

Please install:

pyinstaller

pip install -U pyinstaller

ImageMagick (for the icon)

https://imagemagick.org/script/download.php

Inno Setup (to create the installer)

https://jrsoftware.org/isdl.php

from env2installer import create_installer_exe



# the file for the icon, size doesn't matter, but it must be a png file and can't have spaces

image_for_icon = r"C:\Users\Gamer\Videos\bilder2\2021-02-0603_49_36-Window.png"



# there will be 2 output folders: c:\proxytyri_temp and c:\proxytyri

# the setup-up file will be: "C:\proxytyri\proxyfilesdownl_setup.exe"

outputfolder = "c:\\proxytyri"



# your py file, make sure that it is in the root of your env!

pyfile = r"C:\Users\Gamer\anaconda3\envs\royalehigh\downloadproxies.py"



# name of you app

appname = "proxyfilesdownl"



# your name

autor = "arni"



# path of ImageMagick 

magickpath = r"C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\magick.exe"



create_installer_exe(

    image_for_icon,

    outputfolder,

    pyfile,

    appname,

    autor,

    version="1", # version as string

    LicenseFile=None, # If None, an empty file will be added. The license file will be shown to the user during the installation.

    InfoBeforeFile=None,  # If None, an empty file will be added. The file will be shown to the user during the installation.

    InfoAfterFile=None, # If None, an empty file will be added. The file will be shown to the user during the installation.

    url="https://127.0.0.1", # your url

    innosetupfilepath=r"C:\Program Files (x86)\Inno Setup 6\Compil32.exe", # the Inno Setup executable

    magickpath=magickpath, # path of ImageMagick 

    excludepackages=("pip",), # packages you want to exclude 

    add_to_pyinstaller_cmd=''  # commands to add to pyinstaller, like "--noconsole"

)





# For multiple py to exe (the first file will be the entry)

pyfiles = [

    r"C:\Users\Gamer\anaconda3\envs\subproctest\f1.py",

    r"C:\Users\Gamer\anaconda3\envs\subproctest\fatye\f2.py",

    r"C:\Users\Gamer\anaconda3\envs\subproctest\fatye\f3.py",

]

spefi = create_installer_exe_multi(

    pyfiles,

    appname="f1xxx",

    image_for_icon=r"C:\Users\Gamer\Documents\Downloads\xxxxx.png",

    autor="arni",

    magickpath=r"C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\magick.exe",

    outputfolder="c:\\proxytyrixxx982111xxxdewddaxxxx",

    version="982",  # version as string

    LicenseFile=None,

    # If None, an empty file will be added. The license file will be shown to the user during the installation.

    InfoBeforeFile=None,

    # If None, an empty file will be added. The file will be shown to the user during the installation.

    InfoAfterFile=None,

    # If None, an empty file will be added. The file will be shown to the user during the installation.

    url="https://127.0.0.1",  # your url

    innosetupfilepath=r"C:\Program Files (x86)\Inno Setup 6\Compil32.exe",  # the Inno Setup executable

    excludepackages=("pip",),  # packages you want to exclude

    add_to_pyinstaller_cmd="--noconsole",  # commands to add to pyinstaller, like "--noconsole"

)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

env2installer-0.11.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

env2installer-0.11-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file env2installer-0.11.tar.gz.

File metadata

  • Download URL: env2installer-0.11.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for env2installer-0.11.tar.gz
Algorithm Hash digest
SHA256 a63c1eab0b91a10df412ec06678ebce85ad87683dba9541415efee9d4e98ba18
MD5 62d0765dfde2f3fd251cd9d370155ab5
BLAKE2b-256 3f11a725bd8f2975648186b8c869db6ad323aa573c891c6e65861d0b542bbfae

See more details on using hashes here.

File details

Details for the file env2installer-0.11-py3-none-any.whl.

File metadata

  • Download URL: env2installer-0.11-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for env2installer-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0d792cdff0e967aa2bc8d78804d72db618e03e830a1c4b273c673de4733f7bfd
MD5 a058084ef1e32d3ab8c0865836588a70
BLAKE2b-256 9e49c9fdd2c41ed427617e2c933a0f412717aaad8c1a439d9cdab21823d114c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page