sysconfig.get_config_h_filename

Here are the examples of the python api sysconfig.get_config_h_filename taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

16 Examples 7

Example 1

Project: pymo
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 2

Project: pygame_sdl2
Source File: fix_virtualenv.py
View license
def main():
    target = os.path.dirname(sysconfig.get_config_h_filename())

    try:
        source = os.readlink(target)
    except:
        print(target, "is not a symlink. Perhaps this script has already been run.")
        sys.exit(1)

    tmp = target + ".tmp"

    if os.path.exists(tmp):
        shutil.rmtree(tmp)

    os.mkdir(tmp)

    for i in os.listdir(source):
        if i == "pygame_sdl2":
            continue

        os.symlink(os.path.join(source, i), os.path.join(tmp, i))

    os.unlink(target)
    os.rename(tmp, target)

Example 3

Project: imagrium
Source File: test_sysconfig.py
View license
    @unittest.skipIf(is_jython, "config.h not relevent to Jython")
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 4

Project: TrustRouter
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 5

Project: brython
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 6

Project: chipsec
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 7

Project: datafari
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 8

Project: openwrt-mt7620
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 9

Project: openwrt-mt7620
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 10

Project: iot-utilities
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 11

Project: iot-utilities
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 12

Project: iot-utilities
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 13

Project: iot-utilities
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 14

Project: neuroConstruct
Source File: test_sysconfig.py
View license
    @unittest.skipIf(is_jython, "config.h not relevent to Jython")
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 15

Project: neuroConstruct
Source File: test_sysconfig.py
View license
    @unittest.skipIf(is_jython, "config.h not relevent to Jython")
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)

Example 16

Project: PyAutoC
Source File: test_sysconfig.py
View license
    def test_get_config_h_filename(self):
        config_h = sysconfig.get_config_h_filename()
        self.assertTrue(os.path.isfile(config_h), config_h)