From f4e892cf348eace4a14a0aee568bf1868aa1845e Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Thu, 24 Feb 2022 03:22:20 +0000 Subject: [PATCH] Creation of Binary with PyInstaller and Removal of Cx_Freeze --- run.log | 21 +++------------------ run.log.backup | 2 +- setup.py | 22 +++++++--------------- 3 files changed, 11 insertions(+), 34 deletions(-) diff --git a/run.log b/run.log index 2493e7e..40c6461 100644 --- a/run.log +++ b/run.log @@ -2,10 +2,10 @@ ############# Welcome to DICEPLAYER version 1.0 ############# ########################################################################################## -Your python version is 3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:57:06) -[GCC 9.4.0] +Your python version is 3.8.12 (default, Oct 12 2021, 13:58:32) +[GCC 7.5.0] -Program started on Monday, 21 Feb 2022 at 13:19:54 +Program started on Tuesday, 22 Feb 2022 at 02:37:19 Environment variables: OMP_STACKSIZE = Not set @@ -167,18 +167,3 @@ Molecule type 2 - PLACEHOLDER: Dipole moment = ( 1.9725 , 1.2491 , -0.0000 ) Total = 2.3347 Debye ========================================================================================== - -Starting the iterative process. - ------------------------------------------------------------------------------------------- - Step # 1 ------------------------------------------------------------------------------------------- - -Simulation process simfiles/step01/p01 initiated with pid 29435 -p01> NVT thermalization finished (from random configuration) on 21 Feb 2022 at 13:19:54 -Simulation process simfiles/step01/p02 initiated with pid 29436 -p02> NVT thermalization finished (from random configuration) on 21 Feb 2022 at 13:19:54 -Simulation process simfiles/step01/p03 initiated with pid 29437 -p03> NVT thermalization finished (from random configuration) on 21 Feb 2022 at 13:19:54 -Simulation process simfiles/step01/p04 initiated with pid 29438 -p04> NVT thermalization finished (from random configuration) on 21 Feb 2022 at 13:19:54 diff --git a/run.log.backup b/run.log.backup index cd81c45..51ae859 100644 --- a/run.log.backup +++ b/run.log.backup @@ -5,7 +5,7 @@ Your python version is 3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:57:06) [GCC 9.4.0] -Program started on Monday, 21 Feb 2022 at 13:19:18 +Program started on Tuesday, 22 Feb 2022 at 02:04:46 Environment variables: OMP_STACKSIZE = Not set diff --git a/setup.py b/setup.py index 12466a4..ede466e 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,9 @@ -import sys -from cx_Freeze import setup, Executable +import PyInstaller.__main__ -# Dependencies are automatically detected, but it might need fine tuning. -# "packages": ["os"] is used as example only -build_exe_options = {"packages": ["os","setproctitle","nomkl","numpy"], - "bin_includes": ["/usr/bin/python3"], - "excludes": ["tkinter"], - "optimize": 0} +name = 'diceplayer' -name = "diceplayer" - -setup( - name = name, - version = "0.1", - executables = [Executable("diceplayer/__main__.py", target_name=name)] -) \ No newline at end of file +PyInstaller.__main__.run([ + 'diceplayer/__main__.py', + '--onefile', + '-n{}'.format(name) +]) \ No newline at end of file