wxPython uses a legacy script , and according to this technical note, package installers are deprecated and are (as of the El Capitan release) unsupported:
Package-style installation packages are an outdated migration tool that is no longer supported. PackageMaker is also no longer supported. Now you need to convert to installer packages with a flat file using tools such as productbuild.
This leaves you with two options,
- Convert the installer to a flat package.
- Compile wxWidgets and install it locally.
To achieve the first, follow these instructions:
0 ) Suppose that you have already installed dmg , and you moved the pkg folder to the workstation.
cd ~/repack_wxpython cp -r /Volumes/wxPython/wxPython-ABC.pkg .
1 ). Use the pax utility to extract the payload file ( pax.gz ) from Contents/Resources to a folder that will be the root of your new package.
mkdir pkg_root cd pkg_root pax -f ../wxPython-ABC.pkg/Contents/Resources/wxPython-ABC.pax.gz -z -r cd ..
2 ) Rename the preflight / postflight scripts in the preinstall / postinstall , as required for flat packages, to the scripts folder.
mkdir scripts cp wxPython-ABC.pkg/Contents/Resources/preflight scripts/preinstall cp wxPython-ABC.pkg/Contents/Resources/postflight scripts/postinstall
3 ) Create a flat package using the pkgbuild tool:
pkgbuild --root ./pkg_root --scripts ./scripts --identifier com.wxwidgets.wxpython wxPython-ABC.pkg
This is the documentation of the pkbuild command if you want to configure the passed parameters.
Caveats: the source package contains the License.rtf and Welcome.txt files that are not included in the flat package. They should be added by defining a custom XML file and creating another package using productbuild .
memoselyk
source share