Changeset 3573 for pkpgcounter/trunk

Show
Ignore:
Timestamp:
07/17/13 22:17:23 (11 years ago)
Author:
jerome
Message:

Removed all references to psyco

Location:
pkpgcounter/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/inkcoverage.py

    r3474 r3573  
    3333 
    3434def getPercent(img, nbpix) : 
    35     """Extracts the percents per color component from a picture. 
    36  
    37        Faster without Psyco on my own machine. 
    38     """ 
     35    """Extracts the percents per color component from a picture.""" 
    3936    result = {} 
    4037    bands = img.split() 
     
    4744 
    4845       PIL doesn't produce useable CMYK for our algorithm, so we use the algorithm from PrintBill. 
    49        Psyco speeds this function up by around 2.5 times on my computer. 
    5046    """ 
    5147    if img.mode != "RGB" : 
     
    105101    colorspace = colorspace.upper() 
    106102    computation = globals()["getPercent%s" % colorspace] 
    107     if colorspace in ("CMYK", "GC") : # faster with psyco on my machine 
    108         try : 
    109             import psyco 
    110         except ImportError : 
    111             pass 
    112         else : 
    113             psyco.bind(getPercentCMYK) 
    114  
    115103    index = 0 
    116104    try : 
  • pkpgcounter/trunk/pkpgpdls/pcl345.py

    r3495 r3573  
    102102            firstblock = self.firstblock[pos:] 
    103103            if firstblock.startswith("\033E\033") or \ 
     104               firstblock.startswith("\033(") or \ 
    104105               firstblock.startswith("\033%1BBPIN;") or \ 
    105106               ((pos == 11000) and firstblock.startswith("\033")) or \ 
  • pkpgcounter/trunk/pkpgpdls/pdlparser.py

    r3474 r3573  
    5858        else : 
    5959            self.logdebug("Input file is in the '%s' file format." % self.format) 
    60         try : 
    61             import psyco 
    62         except ImportError : 
    63             pass # Psyco is not installed 
    64         else : 
    65             # Psyco is installed, tell it to compile 
    66             # the CPU intensive methods : PCL and PCLXL 
    67             # parsing will greatly benefit from this. 
    68             psyco.bind(self.getJobSize) 
    6960        self.infile = open(self.filename, self.openmode) 
    7061        # self.logdebug("Opened %s in '%s' mode." % (self.filename, self.openmode)) 
  • pkpgcounter/trunk/README

    r3474 r3573  
    155155  information you think is relevant. 
    156156 
    157   If pkpgcounter complain about your system lacking the Python Psyco module, 
    158   please consider installing it to speedup file parsing. However, don't forget 
    159   that Psyco currently only runs on the 32 bits x86 platform, so no need to 
    160   install it if you've got another system type. 
    161  
    162157============================================================================= 
    163158 
  • pkpgcounter/trunk/setup.py

    r3474 r3573  
    3939    sys.exit(-1) 
    4040 
    41 try : 
    42     import psyco 
    43 except ImportError : 
    44     sys.stderr.write("WARN: If you are running on a 32 Bits x86 platform, you should install the Python Psyco module if possible, this would greatly speedup parsing. NB : Psyco doesn't work on other platforms, so don't worry if you're in this case.\n") 
    45  
    4641sys.path.insert(0, "pkpgpdls") 
    4742from pkpgpdls.version import __version__, __doc__