We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdae884 commit cdad9a4Copy full SHA for cdad9a4
Lib/test/test_build_details.py
@@ -123,6 +123,14 @@ def test_base_interpreter(self):
123
124
self.assertEqual(os.path.realpath(value), os.path.realpath(sys.executable))
125
126
+ @needs_installed_python
127
+ def test_c_api(self):
128
+ value = self.key('c_api')
129
+ self.assertTrue(os.path.exists(os.path.join(value['headers'], 'Python.h')))
130
+ if 'pkgconfig_path' in value:
131
+ version = sysconfig.get_config_var('VERSION')
132
+ self.assertTrue(os.path.exists(os.path.join(value['pkgconfig_path'], f'python-{version}.pc')))
133
+
134
135
if __name__ == '__main__':
136
unittest.main()
0 commit comments