load("//buck/rules:cc.bzl", "cc_objects") load("//buck/rules:codegen.bzl", "configure_file") load("//buck/rules:darwin.bzl", "darwin_binary", "darwin_dylib") load("//buck/rules:files.bzl", "export_file") load("//buck/rules:install.bzl", "prefix_dir") # Targets over the python_modules pin, materialized by scripts/buck-src.nu. The tree # itself is gitignored (content is pinned in nix/submodules.json); this file is # committed. One package per pin keeps what the Nix-lowered path has to parse # small enough to evaluate. # BEGIN generated: _xattr_py27 # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) _xattr_py27 -- review before committing. # cmake target: _xattr_py27 -> src/external/python_modules/Modules/xattr-0.6.4/xattr-0.6.4/lib_xattr_py27.dylib cc_objects( name = "_xattr_py27_obj", srcs = [ "Modules/xattr-0.6.4/xattr-0.6.4/xattr/_xattr.c", ], compiler_flags = [ "-D_LIBC_NO_FEATURE_VERIFICATION", "-D_xattr_py27_EXPORTS", "-fPIC", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", "//vendor/src/python:Python_inc_python_2_7_Python_2_7_16", ], visibility = ["PUBLIC"], ) # END generated: _xattr_py27 # BEGIN generated: _xattr_py27 dylibs # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) --dylibs _xattr_py27 -- review before committing. # Links 1 cmake object library/ies, 1 flag groups in total. # buck-registry: src/external/python_modules/Modules/xattr-0.6.4/xattr-0.6.4/lib_xattr_py27.dylib = _xattr_py27_dylib darwin_dylib( name = "_xattr_py27_dylib", dylib_name = "lib_xattr_py27.dylib", install_name = "", compatibility_version = "1.0.0", objs = [ # _xattr_py27 ":_xattr_py27_obj", ], siblings = [ "//vendor/src:system_final", ], linker_flags = [ "-Wl,-bundle", "-Wl,-undefined,dynamic_lookup", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", ], visibility = ["PUBLIC"], ) # END generated: _xattr_py27 dylibs # BEGIN generated: py2app_bundletemplate # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) py2app_bundletemplate -- review before committing. # cmake target: py2app_bundletemplate -> src/external/python_modules/Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/libpy2app_bundletemplate.dylib cc_objects( name = "py2app_bundletemplate_obj", srcs = [ "Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app/bundletemplate/src/main.m", ], compiler_flags = [ "-D_LIBC_NO_FEATURE_VERIFICATION", "-Dpy2app_bundletemplate_EXPORTS", "-fPIC", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", "//vendor/src:fw_CFNetwork", "//vendor/src:fw_CoreFoundation", "//vendor/src:fw_CoreGraphics", "//vendor/src:fw_Foundation", "//vendor/src:fw_Security", "//src/darwin/frameworks:fw_AE", "//src/darwin/frameworks:fw_CarbonCore", "//src/darwin/frameworks:fw_CoreServices", ], visibility = ["PUBLIC"], ) # END generated: py2app_bundletemplate # BEGIN generated: py2app_bundletemplate dylibs # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) --dylibs py2app_bundletemplate -- review before committing. # Links 1 cmake object library/ies, 1 flag groups in total. # buck-registry: src/external/python_modules/Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/libpy2app_bundletemplate.dylib = py2app_bundletemplate_dylib darwin_dylib( name = "py2app_bundletemplate_dylib", dylib_name = "libpy2app_bundletemplate.dylib", install_name = "", compatibility_version = "1.0.0", objs = [ # py2app_bundletemplate ":py2app_bundletemplate_obj", ], siblings = [ "//vendor/src:system_final", "//vendor/src:AppKit_dylib", "//vendor/src:Foundation_dylib", ], linker_flags = [ "-Wl,-bundle", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", ], visibility = ["PUBLIC"], ) # END generated: py2app_bundletemplate dylibs # BEGIN generated: py2app_apptemplate # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) py2app_apptemplate -- review before committing. # cmake target: py2app_apptemplate -> src/external/python_modules/Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app_apptemplate cc_objects( name = "py2app_apptemplate_obj", srcs = [ "Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app/apptemplate/src/main.c", ], compiler_flags = [ "-D_LIBC_NO_FEATURE_VERIFICATION", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", "//vendor/src:fw_CoreFoundation", "//vendor/src:fw_CoreGraphics", "//vendor/src:fw_CoreText", "//src/darwin/frameworks:fw_AE", "//src/darwin/frameworks:fw_ATS", "//src/darwin/frameworks:fw_ApplicationServices", "//src/darwin/frameworks:fw_CarbonCore", "//src/darwin/frameworks:fw_ColorSync", "//src/darwin/frameworks:fw_ColorSyncLegacy", "//src/darwin/frameworks:fw_CoreServices", "//src/darwin/frameworks:fw_FSEvents", "//src/darwin/frameworks:fw_HIServices", "//src/darwin/frameworks:fw_ImageIO", "//src/darwin/frameworks:fw_LangAnalysis", "//src/darwin/frameworks:fw_LaunchServices", "//src/darwin/frameworks:fw_OpenGL", "//src/darwin/frameworks:fw_PrintCore", "//src/darwin/frameworks:fw_QD", "//src/darwin/frameworks:fw_SearchKit", "//src/darwin/frameworks:fw_SpeechSynthesis", ], visibility = ["PUBLIC"], ) # END generated: py2app_apptemplate # BEGIN generated: py2app_apptemplate binary # GENERATED from the reference build.ninja by # gen-buck-from-ninja (deleted) --binaries py2app_apptemplate -- review before committing. # Links 1 cmake object library/ies, 2 flag groups in total. # buck-registry: src/external/python_modules/Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app_apptemplate = py2app_apptemplate darwin_binary( name = "py2app_apptemplate", objs = [ # py2app_apptemplate ":py2app_apptemplate_obj", # crt1.10.6 "//vendor/src/csu:crt1.10.6_obj2", ], dylibs = [ "//vendor/src:system_final", ], toolchain = "toolchains//:darwin_cc", deps = [ "//src/darwin:sdk_env", "//vendor/src:crt1.10.6", ], visibility = ["PUBLIC"], ) # END generated: py2app_apptemplate binary # BEGIN generated: prefix dirs # GENERATED from the reference build's install entries by # cider-install-from-manifests -- review before committing. prefix_dir( name = "prefix_Modules_six_1_12_0_six_1_12_0_six_egg_info", srcs = glob( ["Modules/six-1.12.0/six-1.12.0/six.egg-info/**"], exclude = [], ), strip = "Modules/six-1.12.0/six-1.12.0/six.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_macholib_1_5_1_macholib_1_5_1_macholib_egg_info", srcs = glob( ["Modules/macholib-1.5.1/macholib-1.5.1/macholib.egg-info/**"], exclude = [], ), strip = "Modules/macholib-1.5.1/macholib-1.5.1/macholib.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_xattr_0_6_4_xattr_0_6_4_xattr_egg_info", srcs = glob( ["Modules/xattr-0.6.4/xattr-0.6.4/xattr.egg-info/**"], exclude = [], ), strip = "Modules/xattr-0.6.4/xattr-0.6.4/xattr.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_setuptools_41_0_1_setuptools_41_0_1_setuptools_egg_info", srcs = glob( ["Modules/setuptools-41.0.1/setuptools-41.0.1/setuptools.egg-info/**"], exclude = [], ), strip = "Modules/setuptools-41.0.1/setuptools-41.0.1/setuptools.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_py2app_0_7_3_py2app_0_7_3_noprebuilt_py2app_egg_info", srcs = glob( ["Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app.egg-info/**"], exclude = [], ), strip = "Modules/py2app-0.7.3/py2app-0.7.3-noprebuilt/py2app.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_altgraph_0_10_2_altgraph_0_10_2_altgraph_egg_info", srcs = glob( ["Modules/altgraph-0.10.2/altgraph-0.10.2/altgraph.egg-info/**"], exclude = [], ), strip = "Modules/altgraph-0.10.2/altgraph-0.10.2/altgraph.egg-info", visibility = ["PUBLIC"], ) prefix_dir( name = "prefix_Modules_modulegraph_0_10_4_modulegraph_0_10_4_modulegraph_egg_info", srcs = glob( ["Modules/modulegraph-0.10.4/modulegraph-0.10.4/modulegraph.egg-info/**"], exclude = [], ), strip = "Modules/modulegraph-0.10.4/modulegraph-0.10.4/modulegraph.egg-info", visibility = ["PUBLIC"], ) # END generated: prefix dirs # BEGIN generated: pin exports load("//buck/generated:exports_python_modules.bzl", "EXPORTS") # One export_file per file another package names by label, from the list # cider-exports keeps. [ export_file(name = _n, src = _s, visibility = ["PUBLIC"]) for _n, _s in EXPORTS.items() ] # END generated: pin exports # The easyinstall shim, one per packaged module. cmake's easyinstall() function is a # `configure_file` of darling/src/easyinstall.py.in with the package baked in, installed as # usr/bin/-. Configure time again, so no ninja edge exists for it. configure_file( name = "easyinstall_xattr_2.7", src = "darling/src/easyinstall.py.in", out = "xattr-0.6.4-2.7", values = { "EXEPATH": "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7", "PACKAGE_NAME": "xattr", "PACKAGE_VERSION": "0.6.4", "PYTHON_VERSION": "2.7", }, visibility = ["PUBLIC"], )