View Single Post
Old 09-25-2009, 09:00 AM   #29
edembowski
Zealot
edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.
 
edembowski's Avatar
 
Posts: 138
Karma: 372
Join Date: Apr 2008
Location: New York, NY
Device: Sony PRS-600, Nook Color, iPad
Quote:
Originally Posted by BookLoverToo View Post
Sorry, but I'm relatively new to Mac. How would I recompile it? Thanks again.
Remember, Mac == Unix.

EDIT: Source tar ball available at http://www.amk.ca/python/code/crypto.html


Download the source using git:

git clone git://git.pycrypto.org:9419/crypto/pycrypto-2.x.git
(more information on git here: http://git-scm.com/)

From the readme:

Code:
Installation
============

PyCrypto is written and tested using Python version 2.1 through 2.6,
though support for Python 2.1 will be dropped soon.  Python 1.5.2 is
not supported.

The modules are packaged using the Distutils, so you can simply run
"python setup.py build" to build the package, and "python setup.py
install" to install it.

If the setup.py script crashes with a DistutilsPlatformError
complaining that the file /usr/lib/python2.2/config/Makefile doesn't
exist, this means that the files needed for compiling new Python
modules aren't installed on your system.  Red Hat users often run into
this because they don't have the python2-devel RPM installed.  The fix
is to simply install the requisite RPM.  On Debian/Ubuntu, you need the
python-dev package.

To verify that everything is in order, run "python setup.py test".  It
will test all the cryptographic modules, skipping ones that aren't
available.  If the test script reports an error on your machine,
please report the bug using the bug tracker (URL given above).  If
possible, track down the bug and include a patch that fixes it,
provided that you are able to meet the eligibility requirements at
http://www.pycrypto.org/submission-requirements/.

To install the package under the site-packages directory of
your Python installation, run "python setup.py install".

If you have any comments, corrections, or improvements for this
package, please report them to our mailing list, accessible via the
PyCrypto website:

    http://www.pycrypto.org/
You just need to `python setup.py build` and then `python setup.py install`.

- Ed

Last edited by edembowski; 09-25-2009 at 09:15 AM.
edembowski is offline   Reply With Quote