✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python310/lib64/python3.10/distutils/tests//test_build_scripts.py
"""Tests for distutils.command.build_scripts."""

import os
import unittest

from distutils.command.build_scripts import build_scripts
from distutils.core import Distribution
from distutils import sysconfig

from distutils.tests import support
from test.support import run_unittest


class BuildScriptsTestCase(support.TempdirManager,
                           support.LoggingSilencer,
                           unittest.TestCase):

    def test_default_settings(self):
        cmd = self.get_build_scripts_cmd("/foo/bar", [])
        self.assertFalse(cmd.force)
        self.assertIsNone(cmd.build_dir)

        cmd.finalize_options()

        self.assertTrue(cmd.force)
        self.assertEqual(cmd.build_dir, "/foo/bar")

    def test_build(self):
        source = self.mkdtemp()
        target = self.mkdtemp()
        expected = self.write_sample_scripts(source)

        cmd = self.get_build_scripts_cmd(target,
                                         [os.path.join(source, fn)
                                          for fn in expected])
        cmd.finalize_options()
        cmd.run()

        built = os.listdir(target)
        for name in expected:
            self.assertIn(name, built)

    def get_build_scripts_cmd(self, target, scripts):
        import sys
        dist = Distribution()
        dist.scripts = scripts
        dist.command_obj["build"] = support.DummyCommand(
            build_scripts=target,
            force=1,
            executable=sys.executable
            )
        return build_scripts(dist)

    def write_sample_scripts(self, dir):
        expected = []
        expected.append("script1.py")
        self.write_script(dir, "script1.py",
                          ("#! /usr/bin/env python2.3\n"
                           "# bogus script w/ Python sh-bang\n"
                           "pass\n"))
        expected.append("script2.py")
        self.write_script(dir, "script2.py",
                          ("#!/usr/bin/python\n"
                           "# bogus script w/ Python sh-bang\n"
                           "pass\n"))
        expected.append("shell.sh")
        self.write_script(dir, "shell.sh",
                          ("#!/bin/sh\n"
                           "# bogus shell script w/ sh-bang\n"
                           "exit 0\n"))
        return expected

    def write_script(self, dir, name, text):
        f = open(os.path.join(dir, name), "w")
        try:
            f.write(text)
        finally:
            f.close()

    def test_version_int(self):
        source = self.mkdtemp()
        target = self.mkdtemp()
        expected = self.write_sample_scripts(source)


        cmd = self.get_build_scripts_cmd(target,
                                         [os.path.join(source, fn)
                                          for fn in expected])
        cmd.finalize_options()

        # http://bugs.python.org/issue4524
        #
        # On linux-g++-32 with command line `./configure --enable-ipv6
        # --with-suffix=3`, python is compiled okay but the build scripts
        # failed when writing the name of the executable
        old = sysconfig.get_config_vars().get('VERSION')
        sysconfig._config_vars['VERSION'] = 4
        try:
            cmd.run()
        finally:
            if old is not None:
                sysconfig._config_vars['VERSION'] = old

        built = os.listdir(target)
        for name in expected:
            self.assertIn(name, built)

def test_suite():
    return unittest.makeSuite(BuildScriptsTestCase)

if __name__ == "__main__":
    run_unittest(test_suite())


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Sep 2026 4.09 AM
root / linksafe
0755
__pycache__
--
3 Sep 2026 4.11 AM
root / linksafe
0755
Setup.sample
2.196 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
__init__.py
1.352 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
includetest.rst
0.024 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
support.py
6.338 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_archive_util.py
14.038 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist.py
1.723 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_dumb.py
2.837 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_msi.py
0.823 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_rpm.py
4.895 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build.py
1.919 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_clib.py
4.798 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_ext.py
20.341 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_py.py
6.187 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_scripts.py
3.509 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_check.py
5.577 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_clean.py
1.407 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_cmd.py
3.745 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_config.py
3.801 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_config_cmd.py
3.124 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_core.py
3.984 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_cygwinccompiler.py
5.504 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dep_util.py
2.754 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dir_util.py
4.545 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dist.py
18.666 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_extension.py
2.742 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_file_util.py
4.344 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_filelist.py
11.2 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install.py
8.773 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_data.py
2.517 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_headers.py
1.209 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_lib.py
3.881 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_scripts.py
2.563 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_log.py
1.82 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_msvc9compiler.py
5.896 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_msvccompiler.py
2.778 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_register.py
9.575 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_sdist.py
16.687 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_spawn.py
5.303 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_sysconfig.py
10.859 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_text_file.py
3.355 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_unixccompiler.py
4.716 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_upload.py
6.97 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_util.py
11.339 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_version.py
3.369 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_versionpredicate.py
0.273 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
xxmodule.c
12.561 KB
12 Aug 2026 11.03 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF