Install MySQLdb (for python) as non-compressed egg


The install instructions are:

$ python build
$ sudo python install # or su first

This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library?



I'm a little late to this party, but here's a way to do it that seems to work great:

sudo python install --single-version-externally-managed --root=/

And then you don't use a .python-egg, any *.pth files etc.

By : jps

Another possibility consists in using the good() function in the stream:

#include <fstream>     
bool checkExistence(const char* filename)
     ifstream Infield(filename);
     return Infield.good();
By : Samer

Use boost::filesystem:

#include <boost/filesystem.hpp>

if ( !boost::filesystem::exists( "myfile.txt" ) )
  std::cout << "Can't find my file!" << std::endl;

This video can help you solving your question :)
By: admin