PackageMaker and make test error

32 views
Skip to first unread message

jarodc...@machinezone.com

unread,
Feb 3, 2016, 3:31:01 PM2/3/16
to cauliflowervest-discuss
Hi all,

New to python, mac, and cauliflower vest, so please bear with me. I'm following the instructions in the admin setup and it states to obtain package maker from Auxiliary Tools for Xcode. I've downloaded those and I don't see packagemaker in it. Am I missing something?

Also, and maybe this is related to package maker, I'm getting the following error when running make test -

/opt/local/bin/python2.7 -c 'import virtualenv' || \
sudo easy_install-2.7 -U virtualenv==1.10.1
[ -d VE ] || \
/opt/local/bin/python2.7  --no-site-packages VE
Unknown option: --
usage: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
make: *** [VE] Error 2


Any guidance would be appreciated. Thanks!

Justin McWilliams

unread,
Feb 3, 2016, 3:55:21 PM2/3/16
to cauliflower...@googlegroups.com
At some point, PackageMaker was moved from Xcode to it's Aux Tools, and at some point later it was removed there as well.  It's still available within older versions of the Aux Tools, and as far as I know it still works on later versions of OS X (i.e. https://github.com/timcharper/git_osx_installer/issues/38).​  That said, while we've added pkgbuild support to Simian (as pkgbuild is the new path forward and away from PackageMaker), however we haven't yet ported that functionality over to CauliflowerVest.  For more, follow https://github.com/google/cauliflowervest/issues/5

As for the "make test" error, this is not likely related.  PackageMaker is only needed to build a deployable pkg/dmg, not to run tests.  This seems related to the Python installation which the scripts are defaulting to: https://github.com/google/cauliflowervest/blob/master/Makefile#L18

"which python2.7" on my machine points to "/usr/bin/python2.7" which is a symlink to "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7" ... whereas yours seems to be in "/opt/ ...".  Have you installed a custom version of Python, perhaps via something like HomeBrew?  If you manually set the Python path in the Makefile above, does it fix things for you?

jarodc...@machinezone.com

unread,
Feb 3, 2016, 5:01:58 PM2/3/16
to cauliflowervest-discuss
Thanks, I was able to fine PackageMaker in an older Aux Tools. I think that will work.
 
as for make test, I set the path to /usr/bin/python2.7 and got the following -

usr/bin/python2.7 -c 'import virtualenv' || \
sudo easy_install-2.7 -U virtualenv==1.10.1
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named virtualenv
Password:
Searching for virtualenv==1.10.1
Best match: virtualenv 1.10.1
Processing virtualenv-1.10.1-py2.7.egg
virtualenv 1.10.1 is already the active version in easy-install.pth
Installing virtualenv script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin
Installing virtualenv-2.7 script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin

Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.10.1-py2.7.egg
Processing dependencies for virtualenv==1.10.1
Finished processing dependencies for virtualenv==1.10.1
[ -d VE ] || \
/usr/bin/python2.7  --no-site-packages VE
Unknown option: --
usage: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
make: *** [VE] Error 2 
 

There is still the error of unknown option: -- (which I'm guessing it's referring to "no-site-packages"?) 

Justin McWilliams

unread,
Feb 3, 2016, 5:05:20 PM2/3/16
to cauliflower...@googlegroups.com
Yea.  It sort of looks like your system Python has been overwritten.  Do you know how/why/if this might be the case?  (i.e. HomeBrew)

--
You received this message because you are subscribed to the Google Groups "cauliflowervest-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cauliflowervest-d...@googlegroups.com.
To post to this group, send email to cauliflower...@googlegroups.com.
Visit this group at https://groups.google.com/group/cauliflowervest-discuss.
For more options, visit https://groups.google.com/d/optout.

jarodc...@machinezone.com

unread,
Feb 3, 2016, 5:07:09 PM2/3/16
to cauliflowervest-discuss
No clue. I'm running a system that was built for me.

Reply all
Reply to author
Forward
0 new messages