@@ -562,29 +562,6 @@ def build_nativelibsupport(capi_home, subdir, libname, deps=[], **kwargs):
562562 ext_modules = [module ],
563563 )
564564
565- def build_libposix (capi_home ):
566- src_dir = os .path .join (__dir__ , "posix" )
567- files = [os .path .abspath (os .path .join (src_dir , f )) for f in os .listdir (src_dir ) if f .endswith (".c" )]
568- no_gnu_source = get_config_var ("USE_GNU_SOURCE" )
569- if no_gnu_source :
570- get_config_vars ()["CFLAGS" ] = get_config_var ("CFLAGS_DEFAULT" )
571- module = Extension (libposix_name ,
572- sources = files ,
573- libraries = ['crypt' ] if not darwin_native else [],
574- extra_compile_args = cflags_warnings + ['-Wall' , '-Werror' ])
575- args = [verbosity , 'build' , 'install_lib' , '-f' , '--install-dir=%s' % capi_home , "clean" , "--all" ]
576- setup (
577- script_name = 'setup' + libposix_name ,
578- script_args = args ,
579- name = libposix_name ,
580- version = '1.0' ,
581- description = "Graal Python's Native support for the POSIX library" ,
582- ext_modules = [module ],
583- )
584- if no_gnu_source :
585- get_config_vars ()["CFLAGS" ] = get_config_var ("CFLAGS_DEFAULT" ) + " " + get_config_var ("USE_GNU_SOURCE" )
586-
587-
588565def build_builtin_exts (capi_home ):
589566 args = [verbosity , 'build' , 'install_lib' , '-f' , '--install-dir=%s/modules' % capi_home , "clean" , "--all" ]
590567 distutil_exts = [(ext , ext ()) for ext in builtin_exts ]
@@ -628,7 +605,6 @@ def stripped_object_filenames(*args, **kwargs):
628605 build_libhpy (capi_home )
629606 if WIN32 :
630607 return # TODO: ...
631- build_libposix (capi_home )
632608 build_nativelibsupport (capi_home ,
633609 subdir = "bz2" ,
634610 libname = "libbz2support" ,
0 commit comments