-
-
Save niktto/331a46b253c5751b300d to your computer and use it in GitHub Desktop.
cx-freeze building to RPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from cx_Freeze import setup, Executable | |
build_exe_options = { | |
"packages": ["PIL", "gi", "gio", "msgpack_pure", | |
"twisted"], | |
"excludes": ["tkinter"], | |
"optimize": 2, | |
} | |
base = None | |
if sys.platform == "win32": | |
base = "Win32GUI" | |
setup( name = "Task_Workshop_Light", | |
version = "0.1", | |
description = "Task Workshop!", | |
author = "Altermind", | |
author_email = "contact@altermind.pl", | |
license = "Commercial", | |
url = "https://taskworkshop.com/", | |
long_description = "Task Workshop Linux Client (Light version)", | |
options = {"build_exe": build_exe_options}, | |
executables = [Executable("task_workshop_light.py", base=base)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python setup.py bdist_rpm | |
running bdist_rpm | |
writing 'build/bdist.linux-i686/rpm/SPECS/Task_Workshop_Light.spec' | |
running sdist | |
running check | |
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list) | |
warning: sdist: standard file not found: should have one of README, README.txt | |
writing manifest file 'MANIFEST' | |
creating Task_Workshop_Light-0.1 | |
making hard links in Task_Workshop_Light-0.1... | |
hard linking setup.py -> Task_Workshop_Light-0.1 | |
Creating tar archive | |
removing 'Task_Workshop_Light-0.1' (and everything under it) | |
copying dist/Task_Workshop_Light-0.1.tar.gz -> build/bdist.linux-i686/rpm/SOURCES | |
building RPMs | |
rpm: build/bdist.linux-i686/rpm/SPECS/Task_Workshop_Light.spec: No such file or directory | |
error: Failed to execute: "rpm -q --qf '%{name}-%{version}-%{release}.src.rpm %{arch}/%{name}-%{version}-%{release}.%{arch}.rpm\\n' --specfile 'build/bdist.linux-i686/rpm/SPECS/Task_Workshop_Light.spec'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment