Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  generateExternalPackage.py

  Sprache: Python
 

#!/usr/bin/env python3

# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from os import path, walk

if __name__ == '__main__':

    ignoredPackages = ["dbm""curses""test""tkinter""turtledemo""sqlite3""idlelib"]

    coreDir = path.dirname(path.dirname(path.dirname(path.abspath(__file__))))
    pythonDir = path.join(coreDir, "workdir/UnpackedTarball/python3")
    libDir = path.join(pythonDir, "Lib")
    subDirDict = {}
    for subdir, dirs, files in walk(libDir):
        filesList = []
        relPythonDir = path.relpath(subdir, pythonDir)
        relLibDir = path.relpath(subdir, libDir)

        isShipped = True
        for package in ignoredPackages:
            if relLibDir.startswith(package):
                isShipped = False
                continue

        if not isShipped:
            continue

        if "/test" in relLibDir:
            continue

        # ignore setuptools.dist-info and pip.dist-info folders
        if ".dist-info" in relLibDir:
            continue

        for fileName in sorted(files):
            if not fileName.endswith((".py"".pem"".exe"".txt")):
                continue
            filesList.append(path.join(relPythonDir, fileName))
        if filesList:
            subDirDict[relPythonDir] = filesList

    for k,v in sorted(subDirDict.items()):
        print()
        if k == "Lib/msilib":
            print("ifeq (WNT,$(OS))")
        print("$(eval $(call gb_ExternalPackage_add_unpacked_files,python3,$(LIBO_BIN_FOLDER)/python-core-$(PYTHON_VERSION)/{},\\".format(k.replace("Lib""lib"3)))
        for fileName in sorted(v):
            print("\t{} \\".format(fileName))
        print("))")
        if k == "Lib/msilib":
            print("endif")

# vim: set shiftwidth=4 softtabstop=4 expandtab:

Messung V0.5 in Prozent
C=99 H=98 G=98

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik