{ "info": { "author": "Mathieu Virbel", "author_email": "mat@meltingrocks.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools" ], "description": "OSX library relocator\n=====================\n\n.. note::\n\n\tThis tool came originaly from the GStreamer project. It has been extracted\n\tto works without cerebro, and can be used in multiples situations.\n\tDocumentation cames from the GStreamer's OSX deployment instructions too.\n\tThanks a lot to the GStreamer project!\n\nInstallation\n------------\n\n\tpip install osxrelocator\n\nUsage\n-----\n\n\tosxrelocator.py [options] directory old_prefix new_prefix\n\nDescription\n-----------\n\nOn Darwin operating systems, the dynamic linker doesn't locate dependent\ndynamic libraries using their leaf name, but instead it uses full paths, which\nmakes it harder to relocate them as explained in the DYNAMIC LIBRARY LOADING\nsection of dyld's man page:\n\n> Unlike many other operating systems, Darwin does not locate dependent dynamic\n> libraries via their leaf file name. Instead the full path to each dylib is\n> used (e.g. /usr/lib/libSystem.B.dylib). But there are times when a full path\n> is not appropriate; for instance, may want your binaries to be installable in\n> anywhere on the disk.\n\nWe can get the list of paths used by an object file to locate its dependent\ndynamic libraries using otool::\n\n\t$ otool -L /Library/Frameworks/GStreamer.framework/Commands/gst-launch-0.10 \n\t/Library/Frameworks/GStreamer.framework/Commands/gst-launch-0.10:\n\t /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.43.0)\n\t /Library/Frameworks/GStreamer.framework/Versions/0.10/x86/lib/libgstreamer-0.10.0.dylib (compatibility version 31.0.0, current version 31.0.0)\n\t /Library/Frameworks/GStreamer.framework/Versions/0.10/x86/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.8.0)\n\nThis full path is extracted from the dynamic library *install name*, a path\nthat is used by the linker to determine its location. The install name of a\nlibrary can be retrieved with otool too::\n\n\t$ otool -D /Library/Frameworks/GStreamer.framework/Libraries/libgstreamer-0.10.dylib \n\t/Library/Frameworks/GStreamer.framework/Libraries/libgstreamer-0.10.dylib:\n\t/Library/Frameworks/GStreamer.framework/Versions/0.10/x86/lib/libgstreamer-0.10.0.dylib\n\nAny object file that links to the dynamic library `gstreamer-0.10` will use the\npath\n`/Library/Frameworks/GStreamer.framework/Versions/0.10/x86/lib/libgstreamer-0.10.0.dylib`\nto locate it.\n\nSince working exclusively with full paths wouldn't let us install our binaries\nanywhere in the path, the linker provides a mechanism of string substitution,\nadding three variables that can be used as a path prefix. At runtime the linker\nwill replace them with the generated path for the prefix. These variables are\n`@executable_path`, `@loader_path` and `@rpath`, described in depth in the\nDYNAMIC LIBRARY LOADING section of dyld's man page.\n\nFor our purpose we will use the `@executable_path variable, which is replaced\nwith a fixed path, the path to the directory containing the main executable:\n`/Applications/MyApp.app/Contents/MacOS`. The `@loader_path` variable can't be\nused in our scope, because it will be replaced with the path to the directory\ncontaining the mach-o binary that loaded the dynamic library, which can vary.\n\nTherefore, in order to relocate the SDK we will need to replace all paths\ncontaining `/Library/Frameworks/GStreamer.framework/` with\n`@executable_path/../Frameworks/GStreamer.framework/`, which can be done using\nthe `install_name_tool` utility", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tito/osxrelocator", "keywords": "osx libraries relocation setuptools development", "license": "LGPL2", "maintainer": null, "maintainer_email": null, "name": "osxrelocator", "package_url": "https://pypi.org/project/osxrelocator/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/osxrelocator/", "project_urls": { "Homepage": "https://github.com/tito/osxrelocator" }, "release_url": "https://pypi.org/project/osxrelocator/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Utility to relocate OSX libraries", "version": "1.0.1" }, "last_serial": 5283022, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "3117edc8a43daa41a0e4c0e75b4ba454", "sha256": "2934a94f04de58d69944763cd113ac5ddb8c96fc9f0fa3bbddaf0bfe218ca4e0" }, "downloads": -1, "filename": "osxrelocator-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3117edc8a43daa41a0e4c0e75b4ba454", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7370, "upload_time": "2014-12-30T15:01:45", "url": "https://files.pythonhosted.org/packages/ab/f8/598a16dcd7d0d478e39e21361ceeb160eceb01fe5996c3ca054bbf5df2e5/osxrelocator-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "104fcbe22a841db83b0fc0eac27391a1", "sha256": "0b2f452e1da1987bad73c927c0842ca0276d3ac451188fcbb0e87a157d2bb2ba" }, "downloads": -1, "filename": "osxrelocator-1.0.0.tar.gz", "has_sig": false, "md5_digest": "104fcbe22a841db83b0fc0eac27391a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4890, "upload_time": "2014-12-30T15:01:48", "url": "https://files.pythonhosted.org/packages/96/c1/02c1d6694c8dc3da9288d2e3b56d759af50368c9034039a320e238f7e63c/osxrelocator-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "be7da6aa18d939ca371dc4145dcda0ea", "sha256": "bebd14adfbbe5f52fec64263d3d787d27e66b9f3507c2269665718ef0c16d517" }, "downloads": -1, "filename": "osxrelocator-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "be7da6aa18d939ca371dc4145dcda0ea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7383, "upload_time": "2015-01-07T19:38:57", "url": "https://files.pythonhosted.org/packages/6f/8d/cec53820c85aa8afab56202e577f960492ede6a0e8a109bd8cd2714a11f3/osxrelocator-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e480cb073d1b59840f4ed083fde5a8ed", "sha256": "cea2a7f58bb8f284adb6b0f13784bd18fbe05a592d696600d40b9c20be06d76d" }, "downloads": -1, "filename": "osxrelocator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e480cb073d1b59840f4ed083fde5a8ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4900, "upload_time": "2015-01-07T19:39:00", "url": "https://files.pythonhosted.org/packages/06/5e/1e28a71cf703add13cb08dde399808b12e0e6b62e118448fd33fd79796ce/osxrelocator-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be7da6aa18d939ca371dc4145dcda0ea", "sha256": "bebd14adfbbe5f52fec64263d3d787d27e66b9f3507c2269665718ef0c16d517" }, "downloads": -1, "filename": "osxrelocator-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "be7da6aa18d939ca371dc4145dcda0ea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7383, "upload_time": "2015-01-07T19:38:57", "url": "https://files.pythonhosted.org/packages/6f/8d/cec53820c85aa8afab56202e577f960492ede6a0e8a109bd8cd2714a11f3/osxrelocator-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e480cb073d1b59840f4ed083fde5a8ed", "sha256": "cea2a7f58bb8f284adb6b0f13784bd18fbe05a592d696600d40b9c20be06d76d" }, "downloads": -1, "filename": "osxrelocator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e480cb073d1b59840f4ed083fde5a8ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4900, "upload_time": "2015-01-07T19:39:00", "url": "https://files.pythonhosted.org/packages/06/5e/1e28a71cf703add13cb08dde399808b12e0e6b62e118448fd33fd79796ce/osxrelocator-1.0.1.tar.gz" } ] }