Python-easy-pack For Linux/Unix, Changed by laman28

Overview

python-easy-pack For Linux/Unix, Changed by laman28

Original version of windows: https://github.com/shr-NaHCO3/python-easy-pack

make pack up python files easier.

如何使用?

  1. Install: Download the .zip archive then decompress or use 'git clone https://github.com/Lone-Air/Python-easy-pack-Linux.git' in your terminal
  2. 打开你的terminal
  3. 切换到程序所在目录,输入python index.py来运行程序。当然,你直接输入运行./index.py也无妨。
  4. 按照要求输入。请注意:目前安装第三方库的功能还未完全完善(一点也不银杏),如果需要第三方库,建议手动在./pyvenv-easypack/bin目录里使用pip命令安装第三方库。
  5. 请认真查看每一条要求输入的信息。这很重要,直接关乎打包的成功与否。
  6. 打包完成并显示成功信息后,你可以在./dist文件夹里找到你想要的东西。

New

  1. Program won't always create the python virtual environment
  2. Program won't always check for pyinstaller
You might also like...
Create standalone executables from Python scripts, with the same performance and is cross-platform.

About cx_Freeze cx_Freeze creates standalone executables from Python scripts, with the same performance, is cross-platform and should work on any plat

Build Windows installers for Python applications

Pynsist is a tool to build Windows installers for your Python applications. The installers bundle Python itself, so you can distribute your applicatio

A modern Python application packaging and distribution tool

PyOxidizer PyOxidizer is a utility for producing binaries that embed Python. The over-arching goal of PyOxidizer is to make complex packaging and dist

Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel.

Subpar Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel. Status Subpar is currently owned by

Python Wheel Obfuscator

pywhlobf obfuscates your wheel distribution by compiling python source file to shared library.

FreezeUI is a python package that creates applications using cx_freeze and GUI by converting .py to .exe .
FreezeUI is a python package that creates applications using cx_freeze and GUI by converting .py to .exe .

FreezeUI is a python package use to create cx_Freeze setup files and run them to create applications and msi from python scripts (converts .py to .exe or .msi .

A library which implements low-level functions that relate to packaging and distribution of Python

What is it? Distlib is a library which implements low-level functions that relate to packaging and distribution of Python software. It is intended to

MCRPC (Minecraft Resource Pack Comparator) checks your resource pack against any version of Minecraft to show resources missing from your pack for that version.
MCRPC (Minecraft Resource Pack Comparator) checks your resource pack against any version of Minecraft to show resources missing from your pack for that version.

Minecraft Resource Pack Comparator MCRPC checks your resource pack against any version of Minecraft to show resources missing from your pack for that

Selects tests affected by changed files. Continous test runner when used with pytest-watch.

This is a pytest plug-in which automatically selects and re-executes only tests affected by recent changes. How is this possible in dynamic language l

The Begin button and menu for the Meadows operating system. The start button for UNIX/Linux.
The Begin button and menu for the Meadows operating system. The start button for UNIX/Linux.

By: Seanpm2001, Meadows Et; Al. Top README.md Read this article in a different language Sorted by: A-Z Sorting options unavailable ( af Afrikaans Afri

A simple tool to audit Unix/*BSD/Linux system libraries to find public security vulnerabilities
A simple tool to audit Unix/*BSD/Linux system libraries to find public security vulnerabilities

master_librarian A simple tool to audit Unix/*BSD/Linux system libraries to find public security vulnerabilities. To install requirements: $ sudo pyth

cmsis-pack-manager is a python module, Rust crate and command line utility for managing current device information that is stored in many CMSIS PACKs

cmsis-pack-manager cmsis-pack-manager is a python module, Rust crate and command line utility for managing current device information that is stored i

Make pack up python files easier.

python-easy-pack make pack up python files easier. 目前只提供了中文环境 如何使用? 将index.py复制到你的项目文件夹,或者把.py文件拷贝到这个文件夹。 打开你的cmd或者powershell 切换到程序所在目录,输入python index

fsociety Hacking Tools Pack – A Penetration Testing Framework
fsociety Hacking Tools Pack – A Penetration Testing Framework

Fsociety Hacking Tools Pack A Penetration Testing Framework, you will have every script that a hacker needs. Works with Python 2. For a Python 3 versi

Pack up to 3MB of data into a tweetable PNG polyglot file.
Pack up to 3MB of data into a tweetable PNG polyglot file.

tweetable-polyglot-png Pack up to 3MB of data into a tweetable PNG polyglot file. See it in action here: https://twitter.com/David3141593/status/13719

Source code for
Source code for "Pack Together: Entity and Relation Extraction with Levitated Marker"

PL-Marker Source code for Pack Together: Entity and Relation Extraction with Levitated Marker. Quick links Overview Setup Install Dependencies Data Pr

A battery pack simulation tool that uses the PyBaMM framework

Overview of liionpack liionpack takes a 1D PyBaMM model and makes it into a pack. You can either specify the configuration e.g. 16 cells in parallel a

ped-crash-techvol: Texas Ped Crash Tech Volume Pack

ped-crash-techvol: Texas Ped Crash Tech Volume Pack In conjunction with the Final Report "Identifying Risk Factors that Lead to Increase in Fatal Pede

Python Fstab Generator is a small Python script to write and generate /etc/fstab files based on yaml file on Unix-like systems.

PyFstab Generator PyFstab Generator is a small Python script to write and generate /etc/fstab files based on yaml file on Unix-like systems. NOTE : Th

Comments
  • Translate

    Translate

    index.py

    #!/usr/local/bin/python3
    # Auther: 碳酸氢钠
    # Changed by: laman28(LMFS)
    # For linux
    import os
    import time
    import sys
    
    def pack(clearVenv=False):
        if clearVenv:
            os.system("rm -rf pyvenv-easypack")
            os.system("rm -rf build")
            os.system("rm *.spec")
    
        if(not os.path.isdir("./pyvenv-easypack")):
            start_time = time.time()
            print('creating pyvenv...')
            if os.system('python -m venv ./pyvenv-easypack'):
                raise Exception("something wrong happend.")
            print(f'pyvenv created successful[{time.time()-start_time}s]')
        else:
            print("[\033[92;1mINFO\033[0m] Python virtual environment was already in the directory")
    
        if(os.path.exists("./.PYI.insd")):
            if(os.path.isfile("./.PYI.insd")):
                f=open("./.PYI.insd")
                has_pyi=f.read()
                if(has_pyi=="1"): has_pyi=True
                else:             has_pyi=False
            else:
                os.system("rm -rf ./.PYI.insd")
                f=open("./.PYI.insd","w")
                has_pyi=False
        else:
            f=open("./.PYI.insd","w")
            has_pyi=False
        if(not has_pyi):
            start_time = time.time()
            print('installing pyinstaller...')
            if os.system('pyvenv-easypack/bin/pip install pyinstaller'):
                raise Exception("something wrong happend.")
            print(f'pyinstaller indtalled successful[{time.time()-start_time}s]')
            f.write("1")
            f.close()
            has_pyi=True
        else:
            print("[\033[92;1mINFO\033[0m] Pyinstaller was already in pyvenv_easypack/lib")
    
        
    
        start_time = time.time()
        print("installing other moudels...")
        for i in modules:
            print("installing:"+i)
            if os.system('pyvenv-easypack/bin/pip install '+i):
                raise Exception("something wrong happend.")
    
        
        start_time = time.time()
        print('packing '+pyFileName+"...")
        pack_command = 'pyvenv-easypack/bin/pyinstaller -F '
        if needConsole!="1":pack_command += '-w '
        if iconURL!='':pack_command += '-i '+iconURL+' '
        if os.system(pack_command+pyFileName):
            raise Exception("something wrong happend.")
    
    
    
    clearVenv = False
    if input("do you want to rebuild pyvenv? yes[1] no[Enter] ") == "1":clearVenv = True
    pyFileName = input("input .py file ")
    iconURL = input("do you need icon? yes[1] no[Enter] ")
    needConsole = input("do you need console? yes[1] no[Enter] ")
    haveModules = input("Is there any other moudels? yes[1] no[Enter] ")
    
    
    modules = []
    if(haveModules=="1"):
        way_to_pack_modules = input("How do you want to install moudels? manual[1] needn't[Enter] ")
        if(way_to_pack_modules == "1"):
            i=-1
            while True:
                modules.append(input("type moudel name. [end] to end."))
                i+=1
                if modules[i] == '[end]':
                    break
            modules.pop()
        else:
            print('sorry... But you can\'t use it now.')
    
    start_time = time.time()
    pack(clearVenv)
    print(f"pack .py file successful\n\
        [{time.time()-start_time}s]\n")
    
    

    README.md

    # python-easy-pack For Linux/Unix, Changed by laman28
    
    Original version of windows: 
    https://github.com/shr-NaHCO3/python-easy-pack
    
    make pack up python files easier.
    
    # How to use it?
    1. Install: Download the .zip archive then decompress or use 'git clone https://github.com/Lone-Air/Python-easy-pack-Linux.git' in your terminal
    1. open yourterminal
    3. cd to your project folder and run `index.py.`
    4. input according to requirement. 
    > attention! If your progmming has other moudels, maybe you need to install them manual.
    6. you can find things you wanted in `./dist/`.
    
    # New
    1. Program won't always create the python virtual environment
    2. Program won't always check for pyinstaller
    
    

    preview: README.md

    python-easy-pack For Linux/Unix, Changed by laman28

    Original version of windows: https://github.com/shr-NaHCO3/python-easy-pack

    make pack up python files easier.

    How to use it?

    1. Install: Download the .zip archive then decompress or use 'git clone https://github.com/Lone-Air/Python-easy-pack-Linux.git' in your terminal
    2. open yourterminal
    3. cd to your project folder and run index.py.
    4. input according to requirement.

    attention! If your progmming has other moudels, maybe you need to install them manual.

    1. you can find things you wanted in ./dist/.

    New

    1. Program won't always create the python virtual environment
    2. Program won't always check for pyinstaller
    opened by NaHCO3-code 2
Owner
LMFS
LMFS make free software
LMFS
Anaconda is the OS installer used by Fedora, RHEL, CentOS and other Linux distributions.

Anaconda is the OS installer used by Fedora, RHEL, CentOS and other Linux distributions. Documentation Documentation for the Anaconda install

Red Hat Installer Engineering Team 454 Jan 8, 2023
Nuitka Organization 8k Jan 7, 2023
py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts. py2app is

Ronald Oussoren 222 Dec 30, 2022
Python virtualenvs in Debian packages

dh-virtualenv Contents Overview Presentations, Blogs & Other Resources Using dh-virtualenv How does it work? Running tests Building the package in a D

Spotify 1.5k Dec 16, 2022
A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

PyArmor Homepage (中文版网站) Documentation(中文版) PyArmor is a command line tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine

Dashingsoft 1.9k Jan 1, 2023
Freeze (package) Python programs into stand-alone executables

PyInstaller Overview PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app withou

PyInstaller 9.9k Jan 8, 2023
shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included.

shiv shiv is a command line utility for building fully self-contained Python zipapps as outlined in PEP 441, but with all their dependencies included!

LinkedIn 1.5k Dec 28, 2022
Core utilities for Python packages

packaging Reusable core utilities for various Python Packaging interoperability specifications. This library provides utilities that implement the int

Python Packaging Authority 451 Jan 4, 2023
A library and tool for generating .pex (Python EXecutable) files

PEX Contents Overview Installation Simple Examples Integrating pex into your workflow Documentation Development Contributing Overview pex is a library

Pants Build 2.2k Jan 1, 2023
A distutils extension to create standalone Windows programs from Python code

py2exe for Python 3 py2exe is a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scrip

py2exe 526 Jan 4, 2023