This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// serialNumInfo() | |
// | |
// Evaluates a mobile device serial number, determines its type (ESN, IMEI, MEID) and attempts | |
// to check for validity if possible. | |
// | |
// When the passed purported serial number, the serialNumInfo() function returns a boolean flag | |
// ('isValid') indicating the validity of the number along with 'numType' indicating the type of | |
// serial number passed. The function expects the passed serialNumber to be not contain any | |
// spaces and for hexadecimal values to be passed without a leading "0x" or "0h" prefix. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When running "pip install m2crypto" in a virtualenv, I got the following error: | |
Downloading/unpacking m2crypto | |
Running setup.py egg_info for package m2crypto | |
Installing collected packages: m2crypto | |
Running setup.py install for m2crypto | |
building 'M2Crypto.__m2crypto' extension | |
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c | |
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i |