python3-installer.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
|
||||
def build():
|
||||
pythonmodules.compile(pyVer = '3')
|
||||
|
||||
def install():
|
||||
pythonmodules.install(pyVer = '3')
|
||||
@@ -0,0 +1,24 @@
|
||||
the previous default of 0, 1 causes opt-1 bytecode to also be generated,
|
||||
which is not used without passing `-O` to `python3` anyway, and doubles
|
||||
the size of the resulting package
|
||||
|
||||
--- a/src/installer/__main__.py
|
||||
+++ b/src/installer/__main__.py
|
||||
@@ -29,7 +29,7 @@
|
||||
metavar="level",
|
||||
type=int,
|
||||
choices=[0, 1, 2],
|
||||
- help="generate bytecode for the specified optimization level(s) (default=0, 1)",
|
||||
+ help="generate bytecode for the specified optimization level(s) (default=0)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-compile-bytecode",
|
||||
@@ -68,7 +68,7 @@
|
||||
if args.no_compile_bytecode:
|
||||
bytecode_levels = []
|
||||
elif not bytecode_levels:
|
||||
- bytecode_levels = [0, 1]
|
||||
+ bytecode_levels = [0]
|
||||
|
||||
with WheelFile.open(args.wheel) as source:
|
||||
destination = SchemeDictionaryDestination(
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python3-installer</Name>
|
||||
<Homepage>https://installer.readthedocs.io/</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>library</IsA>
|
||||
<PartOf>programming.language.python3</PartOf>
|
||||
<Summary>A low-level library for installing from a Python wheel distribution.</Summary>
|
||||
<Description>It provides basic functionality and abstractions for handling wheels and installing packages from wheels.</Description>
|
||||
<Archive sha1sum="06f302ca7164653fdfabea49caffb4c3b40be514" type="targz">
|
||||
https://files.pythonhosted.org/packages/source/i/installer/installer-0.5.1.tar.gz
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>python3-setuptools</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level='1'>default-bytecode-levels.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python3-installer</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>python3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/lib/python3.9</Path>
|
||||
<Path fileType="data">/usr/share/doc/python3-installer</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2022-11-13</Date>
|
||||
<Version>0.5.1</Version>
|
||||
<Comment>First build.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user