Skip to main content

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"

)

Metadata

Release files for env2installer 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for env2installer 0.12
File Size Uploaded Provenance Actions
env2installer-0.12.tar.gz 11.4 kB Without provenance Details for env2installer-0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for env2installer 0.12
File Interpreter ABI Platform Actions
env2installer-0.12-py3-none-any.whl Python 3 none any Details for env2installer-0.12-py3-none-any.whl

Total release size: 23.9 kB

Release files / env2installer-0.12.tar.gz

Download URL env2installer-0.12.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e91881ca4f9f1dbef9cf3854450e507a845abb6572bcd66987921fc4ed569ffa
BLAKE2b-256 checksum
How to use checksums
a551d90f6f5d297a7fc87e8879b6e1b4a96489b8a1196048652925dfd7c17cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / env2installer-0.12-py3-none-any.whl

Download URL env2installer-0.12-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f33323a13451165b0fcabf506127b42b5ec983a43d5901de3d181da61a40ea76
BLAKE2b-256 checksum
How to use checksums
354eb1e2a8543097ac364c70a50013e6aa368ec63e787235e666662a9065bb89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for env2installer 0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page