Tuesday, December 29, 2015

Telur Pete Rebus Tumpang Nasi?

 Ambil mangkok tahan panas,

 masukkan dua telur ke dalamnya, (kulitnya nggak ikut ya),

 masukkan pete sesuai selera,

 masukkan bersamaan dengan menanak nasi di rice cooker,

 tunggu setengah jam hingga 45 menit.

 Selama menunggu akan ada bonus bau harum tercium di seluruh bagian rumah, :)

 Bersamaan dengan nasi yang matang, kita sekaligus mendapatkan lauk.

 Praktis, :)

 #EdisiError




Unlock Tracktion for Mac (redeem)

 I bought Behringer Xenyx QX1202usb, a wonderful cheap small mixer.

 Turn out that it has serial number or code in it case. It allowed us to get full access for Tracktion software.

 So I follow the instruction: register, got confirmation email, download.

 When running the software it prompt me to choose between unlock or continue trial. Of course I went to unlock route. But when I type my email and password it get error.

 Tinkering with it for some hours, the truth's hit me. Tracktion gave me T5 software link in my email. The license is for T4.

 So I download T4 manually (re-register with the same email address). Installed , ran , unlocked, and... succeed.

 And guess what, after I unlocked T4, I ran T5, and it suddenly became unlocked, a little surprise bonus..., :)


Monday, December 28, 2015

Ngalamania Generasi Baru


 Apa beda 'umak isa apa', 'aku ora nggawa libom', 'adepes rotom ku lagi mogok', 'umak apa wis nakam?', 'wis beli soak?'

 dengan

 'lesek lop', 'ewul', 'aro utem', 'siw utuk?', 'kawa sanap'

 ?

 Kelompok pertama adalah  bahasa walikan khas aremania jaman dulu, kelompok kedua adalah bahasa walikan aremania jaman sekarang yang sering saya baca di pasting media sosial.

 Apa bedanya?

 Bahasa Ngalam kelompok pertama, yang merupakan generasi awal bahasa walikan; hanya membalik kata-kata serapan; kata-kata non bahasa jawa, misal bahasa indonesia. Konon dulu digunakan sebagai sandi, karena penjajah sedikit banyak tahu bahasa indonesia dan tidak tahu bahasa jawa maka penggunaan bahasa indonesia dibalik. Ada beberapa pegecualian seperti kata 'beli' karena jika dibalik tidak dapat dibedakan antara 'ileb' dan 'ilep', maka kata 'beli' tetap dipakai secara normal tanpa dibalik.

 Karena bahasa ini merupakan bahasa yang berkembang  dan masyarakat pun berkembang. Dengan seiring perkembangan teknologi dan lahirnya generasi baru Ngalamania, bahasa ini juga berkembang, meski menurut saya menuju ke arah yang membingungkan.

 Eh, kenapa?

 Membingungkan karena generasi baru pemakai bahasa ini membalik kata-kata secara membabibuta. Tentu saja sejak awal memang tidak ada kaidah resmi bahasa walikan. Namun jika kita membalik semua kata termasuk bahasa jawa, percakapan akan menjadi mengerikan (setidaknya bagi saya) karena otak dipaksa menganalisis dan membalik secara nonstop.

 Dari dua kelompok contoh di atas, kelompok pertama lebih mudah dipahami (menurut saya), dan saya sudah familier dengan model pembalikan seperti itu selama bertahun-tahun.

 Kelompok kedua? Well, sepertinya saya harus mengkalibrasi otak dulu, :)


 #EdisiGakBisaTidur

Sunday, December 13, 2015

Heisenberg's Uncertainty Principle

 Di tukang fotokopi, menemukan ini terpajang di dinding.

 Kalau ingin MURAH dan CEPAT, jangan harap BAGUS.

 Kalau ingin BAGUS dan MURAH, jangan harap CEPAT.

 Kalau ingin CEPAT dan BAGUS, jangan harap MURAH.


Mungkin banyak yang tak setuju, tapi itu tulisan yang bagus.

:)

#edisiError

Friday, December 11, 2015

Kebijaksanaan Lokal.

 Kenapa orang tua jaman dulu melarang kita menyapu rumah di malam hari? Kalaupun terpaksa harus menyapu, sapuannya tidak boleh diarahkan keluar melainkan ke dalam untuk dibuang esok harinya?

 Mungkin (hanya kemungkinan), hal itu untuk menghindari barang-barang kecil berharga semacam anting-anting atau kalung emas tipis, atau simcard, yang tak sengaja terjatuh ke lantai ikut tersapu keluar. Karena pada malam hari disapu ke arah dalam, maka misal barang-barang berharga ikut tersapu, kita masih akan dapat mencarinya esok hari, saat cahaya terang, saat akan membuang hasil sapuan di malam kemarin.

Friday, December 4, 2015

Aturan

 Diciptakan untuk ditaati

 ... dan dilanggar.

 Tentu saja pelanggar aturan akan dikenai sanksi.

 Sanksi terhadap pelanggar seharusnya ada di tiap aturan

 Tetapi beberapa aturan dibuat tanpa sanksi untuk pelanggar, entah kenapa

 #edisiError

 (hampir tertabrak kendaraan di area Car Free Day)

Friday, November 27, 2015

3D (Polar/Cylindrical Coordinate) Animation of 2D Diffusion Equation using Python, Scipy, and Matplotlib

 Yup, that same code but in polar coordinate.

 I use nabla operator for cylindrical coordinate but ditch the z component.

 So, what's the z-axis for? It's represent the u value, in this case, temperature, as function of r and phi (I know I should use rho, but, ...)



import scipy as sp

from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt

import mpl_toolkits.mplot3d.axes3d as p3
import matplotlib.animation as animation

#dr  = .1
#dp  = .1
#nr      = int(1/dr)
#np      = int(2*sp.pi/dp)


nr  = 10
np  = 10

r       = sp.linspace(0.,1.,nr)
p       = sp.linspace(0.,2*sp.pi,np)

dr  = r[1]-r[0]
dp  = p[1]-p[0]

a   = .5

tmax    = 100
t       = 0.


dr2     = dr**2
dp2     = dp**2

dt      = dr2 * dp2 / (2 * a * (dr2 + dp2) )
dt      /=10.
print 'dr = ',dr 
print 'dp = ',dp 
print 'dt = ',dt



ut      = sp.zeros([nr,np])
u0      = sp.zeros([nr,np])

ur      = sp.zeros([nr,np])
ur2     = sp.zeros([nr,np])


#initial

for i in range(nr):
    for j in range(np):
        if ((i>4)&(i<6)):
            u0[i,j] = 1.
#print u0

def hitung_ut(ut,u0):
    for i in sp.arange (len(r)):
        if r[i]!= 0.:
            ur[i,:]     = u0[i,:]/r[i]
            ur2[i,:]     = u0[i,:]/(r[i]**2)
    ut[1:-1, 1:-1]  = u0[1:-1, 1:-1] + a*dt*(
            (ur[1:-1, 1:-1] - ur[:-2, 1:-1])/dr+
            (u0[2:, 1:-1] - 2*u0[1:-1, 1:-1] + u0[:-2,1:-1])/dr2+
            (ur2[1:-1, 2:] - 2*ur2[1:-1, 1:-1] + ur2[1:-1, :-2])/dp2)
    #calculate the edge
    ut[1:-1, 0]  = u0[1:-1, 0] + a*dt*(
            (ur[1:-1, 0] - ur[:-2, 0])/dr+
            (u0[2:, 0] - 2*u0[1:-1, 0] + u0[:-2, 0])/dr2+
            (ur2[1:-1, 1] - 2*ur2[1:-1, 0] + ur2[1:-1, np-1])/dp2)
    ut[1:-1, np-1]  = u0[1:-1, np-1] + a*dt*(
            (ur[1:-1, np-1] - ur[:-2, np-1])/dr+
            (u0[2:, np-1] - 2*u0[1:-1, np-1] + u0[:-2,np-1])/dr2+
            (ur2[1:-1, 0] - 2*ur2[1:-1, np-1] + ur2[1:-1, np-2])/dp2)


#hitung_ut(ut,u0)
#print ut

def data_gen(framenumber, Z ,surf):
    global ut
    global u0
    global t
    hitung_ut(ut,u0)
    u0[:] = ut[:]
    Z = u0
    t += 1
    print t
    
    ax.clear()
    plotset()
    surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)
    return surf,


fig = plt.figure()
#ax = fig.gca(projection='3d')
ax = fig.add_subplot(111, projection='3d')

P,R = sp.meshgrid(p,r)

X,Y = R*sp.cos(P),R*sp.sin(P) 

Z = u0
print len(R), len(P)



def plotset():
    ax.set_xlim3d(-1., 1.)
    ax.set_ylim3d(-1., 1.)
    ax.set_zlim3d(-1.,1.)
    ax.set_autoscalez_on(False)
    ax.zaxis.set_major_locator(LinearLocator(10))
    ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f'))
    cset = ax.contour(X, Y, Z, zdir='x', offset=-1. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='y', offset=1. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='z', offset=-1., cmap=cm.coolwarm)

plotset()
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)

fig.colorbar(surf, shrink=0.5, aspect=5)

ani = animation.FuncAnimation(fig, data_gen, fargs=(Z, surf),frames=4096, interval=4, blit=False)
#ani.save('2dDiffusionfRadialf1024b512.mp4', bitrate=1024)

plt.show()    





.






100x100 size

Thursday, November 26, 2015

The Wrong Code Will often Provide Beautiful Result, :)

 It means to compute 2d diffusion equation just like previous post in polar/cylindrical coordinate, and all went to wrong direction, :)

 Still trying to understand matplotlib mplot3d behavior


import scipy as sp

from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt

import mpl_toolkits.mplot3d.axes3d as p3
import matplotlib.animation as animation

#dr  = .1
#dp  = .1
#nr      = int(1/dr)
#np      = int(2*sp.pi/dp)

nr  = 10
np  = 10

dr  = 1./nr
dp  = 2*sp.pi/np

a   = .5

tmax    = 100
t       = 0.


dr2     = dr**2
dp2     = dp**2

dt      = dr2 * dp2 / (2 * a * (dr2 + dp2) )
dt      /=10.
print dt



ut      = sp.zeros([nr,np])
u0      = sp.zeros([nr,np])

ur      = sp.zeros([nr,np])
ur2     = sp.zeros([nr,np])

r       = sp.arange(0.,1.,dr)
p       = sp.arange(0.,2*sp.pi,dp)

#initial

for i in range(nr):
    for j in range(np):
        if ( (i>(2*nr/5.)) & (i<(3.*nr/3.)) ):
            u0[i,j] = 1.
#print u0

def hitung_ut(ut,u0):
    for i in sp.arange (len(r)):
        if r[i]!= 0.:
            ur[i,:]     = u0[i,:]/r[i]
            ur2[i,:]     = u0[i,:]/(r[i]**2)
    ut[1:-1, 1:-1]  = u0[1:-1, 1:-1] + a*dt*(
            (ur[1:-1, 1:-1] - ur[:-2, 1:-1])/dr+
            (u0[2:, 1:-1] - 2*u0[1:-1, 1:-1] + u0[:-2,1:-1])/dr2+
            (ur2[1:-1, 2:] - 2*ur2[1:-1, 1:-1] + ur2[1:-1, :-2])/dp2)


#hitung_ut(ut,u0)
#print ut


def data_gen(framenumber, Z ,surf):
    global ut
    global u0
    hitung_ut(ut,u0)
    u0[:] = ut[:]
    Z = u0
    
    ax.clear()
    plotset()
    surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)
    return surf,


fig = plt.figure()
#ax = fig.gca(projection='3d')
ax = fig.add_subplot(111, projection='3d')

R = sp.arange(0,1,dr)
P = sp.arange(0,2*sp.pi,dp)
R,P = sp.meshgrid(R,P)

X,Y = R*sp.cos(P),R*sp.sin(P) 

Z = u0
print len(R), len(P)



def plotset():
    ax.set_xlim3d(-1., 1.)
    ax.set_ylim3d(-1., 1.)
    ax.set_zlim3d(-1.,1.)
    ax.set_autoscalez_on(False)
    ax.zaxis.set_major_locator(LinearLocator(10))
    ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f'))
    cset = ax.contour(X, Y, Z, zdir='x', offset=0. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='y', offset=1. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='z', offset=-1., cmap=cm.coolwarm)

plotset()
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)

fig.colorbar(surf, shrink=0.5, aspect=5)

ani = animation.FuncAnimation(fig, data_gen, fargs=(Z, surf),frames=500, interval=30, blit=False)
#ani.save('2dDiffusionf500b512.mp4', bitrate=512)

plt.show()    

.

Miss Lay.

 Baca komen seperti  "Permainan gitar Eross pecah banget...." di Youtube, hati langsung panas.

 Berani-beraninya menghina sang maestro, sana, ke comberan sana, tempat asalmu, ...

 Eh, tunggu...

 Itu bukan hinaan, itu pujian...

 Pecah? Pujian?

 Yeah, beberapa dari kita sering menggunakan kata tak pada tempatnya, :)

 Penggunaan kata 'pecah' sebagai pujian datang dari Maia Estianty saat menjadi juri The Remix.

 Tentu saja penggunaan kata 'pecah' di dunia DJ atau remix sangat cocok; merujuk pada sunyi yang lambat laun menjadi semakin ramai seiring dengan penumpukan nada-nada sampling yang makin banyak, tempo yang makin cepat dan diakhiri dengan sebuah hentakan..., pecah..., 

 OK, itu pujian, bagaimana kalo kata 'pecah' digunakan di permainan gitar. Yeah, kami menganggap kata pecah sebagai kata berkonotasi buruk; merujuk pada suara gitar yang seharusnya clean namun karena setting yang buruk jadi terdengar 'brebet' atau 'pecah'.

 Bukannya efek gitar Telecaster-nya Eross mempunya karakter pecah?  Ehm, EDrive-nya Eross, seperti namanya, 'drive', hanya bertugas sebagai booster saat permainan lead, bahkan kalo kita lihat di penampilan live, Eross jarang sekali menggunakan stompbox, dia memainkan knob volume untuk efek crunch atau crisp. Jika  ingin suara clean, dia mengecilkan volume gitarnya.

 Suara Telecaster Eross 'pecah'? Well, lebih baik pakai kata crunchy, crispy, ..., lebih diterima oleh banyak gitaris, :)



Wednesday, November 25, 2015

3D Animation of 2D Diffusion Equation using Python, Scipy, and Matplotlib

 I wrote the code on OS X El Capitan, use a small mesh-grid.  Basically it's same code like the previous post.

 I use surface plot mode for the graphic output and animate it.

 Because my Macbook Air is suffered from running laborious code, I save the animation on my Linux environment, 1024 bitrate, 1000 frames.

story
import scipy as sp
import time
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt

import mpl_toolkits.mplot3d.axes3d as p3
import matplotlib.animation as animation



dx=0.01        
dy=0.01     
a=0.5          
timesteps=500  
t=0.

nx = int(1/dx)
ny = int(1/dy)


dx2=dx**2 
dy2=dy**2 

dt = dx2*dy2/( 2*a*(dx2+dy2) )

ui = sp.zeros([nx,ny])
u = sp.zeros([nx,ny])

for i in range(nx):
 for j in range(ny):
  if ( ( (i*dx-0.5)**2+(j*dy-0.5)**2 <= 0.1)
   & ((i*dx-0.5)**2+(j*dy-0.5)**2>=.05) ):
    ui[i,j] = 1
def evolve_ts(u, ui):
 u[1:-1, 1:-1] = ui[1:-1, 1:-1] + a*dt*( 
                (ui[2:, 1:-1] - 2*ui[1:-1, 1:-1] + ui[:-2, 1:-1])/dx2 + 
                (ui[1:-1, 2:] - 2*ui[1:-1, 1:-1] + ui[1:-1, :-2])/dy2 )
        

def data_gen(framenumber, Z ,surf):
    global u
    global ui
    evolve_ts(u,ui)
    ui[:] = u[:]
    Z = ui
    
    ax.clear()
    plotset()
    surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)
    return surf,


fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

X = sp.arange(0,1,dx)
Y = sp.arange(0,1,dy)
X,Y= sp.meshgrid(X,Y)

Z = ui 

def plotset():
    ax.set_xlim3d(0., 1.)
    ax.set_ylim3d(0., 1.)
    ax.set_zlim3d(-1.,1.)
    ax.set_autoscalez_on(False)
    ax.zaxis.set_major_locator(LinearLocator(10))
    ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f'))
    cset = ax.contour(X, Y, Z, zdir='x', offset=0. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='y', offset=1. , cmap=cm.coolwarm)
    cset = ax.contour(X, Y, Z, zdir='z', offset=-1., cmap=cm.coolwarm)

plotset()
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm,
                       linewidth=0, antialiased=False, alpha=0.7)


fig.colorbar(surf, shrink=0.5, aspect=5)

ani = animation.FuncAnimation(fig, data_gen, fargs=(Z, surf),frames=1000, interval=30, blit=False)
ani.save("2dDiffusion.mp4", bitrate=1024)

#plt.show()    

.

Tuesday, November 24, 2015

2D Diffusion Equation using Python, Scipy, and VPython

 I got it from here, but modify it here and there.

 I also add animation using vpython but can't find 3d or surface version, so I planned to go to matplotlib surface plot route, :)

 (update: here it is, :) )


#!/usr/bin/env python
"""
A program which uses an explicit finite difference
scheme to solve the diffusion equation with fixed
boundary values and a given initial value for the
density.

Two steps of the solution are stored: the current
solution, u, and the previous step, ui. At each time-
step, u is calculated from ui. u is moved to ui at the
end of each time-step to move forward in time.

http://www.timteatro.net/2010/10/29/performance-python-solving-the-2d-diffusion-equation-with-numpy/

he uses matplotlib

I use visual python

"""
import scipy as sp
import time
from visual import *
from visual.graph import *


graph1 = gdisplay(x=0, y=0, width=600, height=400, 
          title='x vs. T', xtitle='x', ytitle='T', 
          foreground=color.black, background=color.white)


# Declare some variables:

dx=0.01        # Interval size in x-direction.
dy=0.01        # Interval size in y-direction.
a=0.5          # Diffusion constant.
timesteps=500  # Number of time-steps to evolve system.
t=0.

nx = int(1/dx)
ny = int(1/dy)

dx2=dx**2 # To save CPU cycles, we'll compute Delta x^2
dy2=dy**2 # and Delta y^2 only once and store them.

# For stability, this is the largest interval possible
# for the size of the time-step:
dt = dx2*dy2/( 2*a*(dx2+dy2) )

# Start u and ui off as zero matrices:
ui = sp.zeros([nx,ny])
u = sp.zeros([nx,ny])

# Now, set the initial conditions (ui).
for i in range(nx):
 for j in range(ny):
  if ( ( (i*dx-0.5)**2+(j*dy-0.5)**2 <= 0.1)
   & ((i*dx-0.5)**2+(j*dy-0.5)**2>=.05) ):
    ui[i,j] = 1
'''
def evolve_ts(u, ui):
 global nx, ny
 """
 This function uses two plain Python loops to
 evaluate the derivatives in the Laplacian, and
 calculates u[i,j] based on ui[i,j].
 """
 for i in range(1,nx-1):
  for j in range(1,ny-1):
   uxx = ( ui[i+1,j] - 2*ui[i,j] + ui[i-1, j] )/dx2
   uyy = ( ui[i,j+1] - 2*ui[i,j] + ui[i, j-1] )/dy2
   u[i,j] = ui[i,j]+dt*a*(uxx+uyy)
'''
def evolve_ts(u, ui):
 """
 This function uses a numpy expression to
 evaluate the derivatives in the Laplacian, and
 calculates u[i,j] based on ui[i,j].
 """
 u[1:-1, 1:-1] = ui[1:-1, 1:-1] + a*dt*( 
                (ui[2:, 1:-1] - 2*ui[1:-1, 1:-1] + ui[:-2, 1:-1])/dx2 + 
                (ui[1:-1, 2:] - 2*ui[1:-1, 1:-1] + ui[1:-1, :-2])/dy2 )
        
# Now, start the time evolution calculation...
#tstart = time.time()

f1 = gcurve(color=color.blue)

while True:
    rate(60)
    #for m in range(1, timesteps+1):
    if t<timesteps:
        t+=dt
 evolve_ts(u, ui)
        ui[:] = u[:] # I add this line to update ui value (not present in original code)
 #print "Computing u for m =", m
    f1.gcurve.pos   =   []
    for i in arange(nx):
        f1.plot(pos=(i,u[nx/2,i]))
    
#tfinish = time.time()

#print "Done."
#print "Total time: ", tfinish-tstart, "s"
#print "Average time per time-step using numpy: ", ( tfinish - tstart )/timesteps, "s."


.


Monday, November 23, 2015

Numpy Slice Expression

 Suppossed we have two array a and b

 If we want to set b as finite difference result of a, we may tempted to do this

for i in range (9):
 b[i] = a[i+1]-a[i]

There's another (faster) way. The performance's close to the pure C, :)

b[:-1] = a[1:]-a[:-1]

What's that?

Numpy has slice form for array. If we have an array with length 10, the a[:] refers to all value in a.

a[1:] refers to a[1] to a[9] (without a[0])
a[3:] refers to a[3] to a[9]
a[:-1] refers to a[0] to a[8]
a[:-3] refers to a[0] to a[6]
a[1:-1] refers to a[1] to a[8]
...
and so on

Here's my tinkering with slice expression
>>> from numpy import *
>>> a = zeros(10)
>>> b = zeros(10)
>>> a[5]=1.
>>> a
array([ 0.,  0.,  0.,  0.,  0.,  1.,  0.,  0.,  0.,  0.])
>>> b
array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.])
>>> a[6]=2.
>>> a
array([ 0.,  0.,  0.,  0.,  0.,  1.,  2.,  0.,  0.,  0.])
>>> b[:-1]=a[:-1]-a[1:]
>>> b
array([ 0.,  0.,  0.,  0., -1., -1.,  2.,  0.,  0.,  0.])
>>> b[:-1]=a[:-1]+a[1:]
>>> b
array([ 0.,  0.,  0.,  0.,  1.,  3.,  2.,  0.,  0.,  0.])
>>> 

I like Python, :)




Friday, November 20, 2015

Car Free Day

 Sepertinya ada (banyak) yang mengartikan sebagai kendaraan bebas berjalan di manapun, bahkan di tempat yang saat normal gak bisa dimasuki, :(

 (hampir ketabrak sepeda motor yang dikendarai mahasiswa berboncengan  di jalan antara gedung MIPA dan Fisika)

 #EdisiError

Wednesday, November 18, 2015

Create CSV file using Delphi

 I used textfile variable to write to a file (or create it if it don't exist).

 CSV file? Just make sure that the name at assignfile  command had .csv extension, :)

 Of course we have to format the output to meet the CSV standart; separated by comma.


procedure TForm1.Button1Click(Sender: TObject);
var
    fileku:textfile;
    i,j,n:integer;
begin
  n:=10;
  assignfile(fileku,'data.csv');
  rewrite(fileku);
  writeln(fileku,'tadaa...');
  for i:=1 to n do begin
    for j:=1 to n do begin
      writeln(fileku,i,',',j,',','data',i,j);
    end;
  end;
  closefile(fileku);
end;

.

Turn right! No! Your other right!

 “I definitely didn’t have time to get my soul cast into a place I couldn’t even pronounce.”

 Typical Rick, :)

Friday, November 13, 2015

Darurat.

 Sepatu basah kena hujan.

 Gak bawa serep.

 Nyalakan AC, gantung di depan kipas, tunggu dua jam, :)

Thursday, November 12, 2015

Delphi on OS X

 Here's the WineSkin version.

 I found it's way smoother than WineBottler version, ...., but hard to figure how to use it

 To install Delphi in OS X using WineSkin, we have to download and install Wineskin, of course, :)

  • Open Wineskin Winery.app
  • Make sure you have a Wrapper version and an Engine
  • Select the Engine you want to use (I use WS9Wine1.7.52)
  • Press the Create Wrapper button
  • Enter in the name Delphi (or whatever you have in mind) for the wrapper and press OK
  • When its done being created, click the button to view it in Finder in the finished window
  • Close Wineskin Winery.app.
  • Right click Delphi.app in Finder and select “Show Package Contents”
  • Double click and run Wineskin.app.
  • Now click on the Install Software button
  • Select to choose a setup executable
  • Navigate to the Delphi setup exe file you downloaded in step one
  • Select the setup exe file and press the choose button
  • At this point Delphi setup should begin, go through the Delphi setup like a normal install
  • After the setup is done, back in Wineskin.app, it should pop up asking you to select the .exe file
  • Choose the delphi32.exe file in the drop down list and press the Select Button
  • Now press the Quit button to exit Wineskin.app
  • Back in Finder, double click Delphi.app and start coding

 It has the same problem with WineBottler,  the toolbar tab's seem order by itself alphabetically, so the default toolbar tab is not ' standard ' tab but 'additional' one

code
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  jalan:boolean=false;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  jalan := not jalan;
  if jalan = true then button1.Caption:='Stop'
    else button1.Caption:='Run';

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
 button1.Caption:='Run';
end;

end.
.

Delphi on OS X

 I use WineBottler to install Delphi 7 on my El Capitan.

 It's installed, it can run.

 The one that tickle me is the toolbar list is scrambled, it's sorted alphabetically, so additional toolbar is in the first and act as default toolbar.

Pulpen Cadangan, iPod dan Prasangka Baik Terhadap Soal.

 Senjata ujian jaman dulu, :)


Obat Tidur Alami

 Jangan memandang layar di jam-jam tidur, baik layar TV, komputer, handphone.

 Misal terpaksa bekerja dengan komputer di malam hari, gunakan aplikasi seperti flux. Aplikasi ini menghilangkan warna biru di layar.

 Warna biru (seperti cahaya matahari pagi hari) membuat kita tetap terjaga, karena tubuh menganggap hari masih belum malam. Cahaya biru dari layar TV, laptop, hp membuat jam biologis kita menjadi kacau.
Biological clock human.svg
"Biological clock human" by NoNameGYassineMrabetTalk fixed by Addicted04 - The work was done with Inkscape by YassineMrabet. Informations were provided from "The Body Clock Guide to Better Health" by Michael Smolensky and Lynne Lamberg; Henry Holt and Company, Publishers (2000). Landscape was sampled from Open Clip Art Library (Ryan, Public domain). Vitruvian Man and the clock were sampled from Image:P human body.svg (GNU licence) and Image:Nuvola apps clock.png, respectively.. Licensed under CC BY-SA 3.0 via Commons.


Wednesday, November 11, 2015

Heel and Toe?

 I tried several time to no avail. 

 It's just not working for me. 

 Maybe it's my drumming posture on throne, or other cause. 

 It's hard for me to lift my heel, so I use heel down technique all the time, :)

 Is it fast? 

 Not really, but  it's enough for my genre of music.

 If the fast heel and toe is needed, I manage to catch it up with normal kick with heel down and straight toe, and the second hit is with my toe in curl position (heel down)

 It isn't heel and toe technique, it's straight and curl toe technique, :D 

 

Tuesday, November 10, 2015

Yup...

 Mulai ramai tulisan mengeluh tentang hujan yang tak kunjung henti

 (ingat saat kemarau panjang kemarin)

 :)

 .

Monday, November 9, 2015

Sisi Lain

 Terlepas dari kontroversi.

 Tim yamaha factory hebat.

 Di depan tak bisa di-overtake

 Di belakang mengovertake 22 rider di depannya

 Hebat.

 :)


 (ndak lihat tayangan live :( )

Sunday, November 8, 2015

Status.

  Setelah beberapa bulan membaca status bernada mengeluh karena gak hujan-hujan, sekarang siap-siap membaca status-status keluhan karena hujan, :D

SwishMax in Mac.

  :)

 Yeah, I use OS X El Capitan in My Macbook Air and use Wine Bottler to install it.

 Make sure that flash option is ticked in winetriks part


Integral menggunakan Metode Numerik di Python dan Plot Fungsi menggunakan Matplotlib.

 Kode berikut digunakan untuk mencari nilai integral dari a ke b sebuah fungsi f(x).

 Saya menggunakan modul Numpy untuk fungsi pangkat (power).

from pylab import *
import numpy as np

def f(x):
    y = np.power(x,3)+np.power(x,2)+x+1
    return y

dx = .1
a = 0.
b = 1.

x = a
c = 0.  # untuk menampung hasil integral
while x<=b:
    y  = f(x)
    c += f(x)*dx
    x += dx

print 'hasil integral dari ',a,' ke ',b,' adalah ' ,c

#untuk plotting
x = np.arange(-10., 10., .01)
y = f(x)

plot(x,y)
grid(True)
show()


..

Saturday, November 7, 2015

List Files on Certain Google Drive Folder and It's Subfolders

 ...and display it in html format using div tag with border so the files in subfolders will displayed in box, and files in other subfolder will displayed in other box. If subfolder have subfolder, then files inside that sub-subfolder will displayed inside box inside box, :s :P :D

 The Algorithm itself is bit like this previous post. OK, I copy and paste a little bit of,..., ok most of code from it.

 All by Google App Script.

 I use string variable named text to receive all output.

 Basically, after the script is completely executed, the content of variable text  is complete html source code.

 :)

 Here it is

 Code.gs

Friday, November 6, 2015

Passing String Variable to a Function on Google App Script

I have text a variable with string type, I want to pass it to a function and change the value there just like previous post (using list type)

but, text variable value can't be changed by  passing to function like list (or array). I didn't have append or push syntax.

well, we can still use list

but list have comma, :(

so I updated the value by passing it to a function like this


function htmlOutput(form) {
  var text = 'Tadaa...';
  text+='Test'; 

text = dummy(text);
  return text;
}

function dummy(text){
text+='hehehe';
  return text;
}


.

:)

 By definition, keripik pisang is pisang goreng, :D

 #EdisiError

Hujan

 Pohon dan rumput berpesta.
 
 ...dan aku basah kuyup.

Tuesday, November 3, 2015

Hanya Kemungkinan.

 Akan seru jika di Valencia nanti para rider (sambil cengingisan) minggir memberi jalan Rossi tuk bertarung dengan Lorenzo.

 (seru dan aneh, :) )

 (well, kecuali Marquez mungkin, :) ).

 (gak mungkin, :) ).



Monday, November 2, 2015

The Typical Rick, :)

“Hearthstone Passes Out Even More than Jason Grace (Though I Have No Idea Who That Is)”

Excerpt From: Rick Riordan. “Magnus Chase and the Sword of Summer.” iBooks.


I like Magnus Chase, :)

Tarian Ayam Kinanthi, :D

:)


Friday, October 30, 2015

Read HFS+ from Linux

 The OS X filesystem, HFS+, by default is in read-only mode in my ubuntu.

 So I installed hfsprogs using
  
sudo apt-get install hfsprogs

 (you have to enable universe package-source)

 to mount the "Macintosh HD", use this

$cd 
$mkdir osx
$sudo mount -t hfsplus -o force,rw /dev/sda2 osx 


 Nevertheless, it still mounted as read-only, and some folders refused to open at all.

 Here the trick. We have to have same uid as the os x.

 so, create new user

sudo useradd -d /home/newuser -m -s /bin/bash -G root newuser

sudo passwd newuser

sudo usermod --uid 501 newuser

sudo chown -R 501:newuser /home/newuser
.

 by default the first user on OSX has an uid 501.

 Now, as we have the same uid on linux and OS X. We could freely read the filesystem.

Wednesday, October 28, 2015

#MelawanAsap



 Sepertinya tahun depan tidak akan ada kebakaran hutan,

 tak ada asap, 

 karena tak ada lagi yang bisa dibakar.





Monday, October 26, 2015

List Folders and Files Recursively using Google App Script.

 I got the problem because using 'recursive' as function name, :)

 At least now I know that, :)

 The next? Beautifying the result, :D 

.
function listFilesNFolders(form) {
  var list = [];
  var lv = 0;                    //lv for level or depth
  list.push(['tadaa...<br>']);
  list.push(['heheh...']);
  var row = [];
  row.push('<br> Hello World!!! ');
  list.push(row);
  
  var home = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); 
  list.push('<br>');
  list.push(home.getName());
  crawl(home,list,lv);
  return list;
}

//don't use 'recursive' as function name, it won't work
function crawl(home,list,lv){
  lv++;
  list.push('<br>tadaa...'+lv+'...');

  var files=home.getFiles();  
  while (files.hasNext()){
    var file=files.next();
    list.push('<br>f '+file.getName());
  }
  
  var folders=home.getFolders();
  while (folders.hasNext()){
    var folder=folders.next();
    list.push('<br>d '+folder.getName());
    
    crawl(folder,list,lv);
  }
}

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



.



Minggu Pagi.

 Sepuluh hari gak ketemu, :)








Saturday, October 24, 2015

#MelawanAsap

 Jika MotoGP Sepang gagal karena asap, maka Rossi cukup finish ketiga di Valencia untuk jadi juara dunia, :)

#MelawanAsap

 Trik Old Shatterhand di Llano Estacado untuk mendatangkan hujan sepertinya tak berhasil di sini.

 :(

 (ingat Karl May)

Friday, October 23, 2015

Global Variable on Google App Script

 I have trouble accessed it within function,

 so I pass it to every function,
 not so elegant solution, but it works, :) .

 In the code below, I have global variable named list.

 I have to passed as parameter on function dummy in order to edit its value or it wouldn't affected or have error message or undefined (I experienced both, :) )

function listFilesNFolders(form) {
  var list = [];
  list.push(['tadaa...<br>']);
  list.push(['heheh...']);
  var row = [];
  row.push('<br> Hello World!!! ');
  list.push(row);
  
  var home = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); 
  
  dummy('<br> test',list);
  return list;
}

function dummy(d,list){
  list.push(d);
}


The form

 <form id="myForm">
     <input type="submit" 
    value="OK"        
    onclick="
    this.value='Proses';
    google.script.run.withSuccessHandler(fileUploaded).listFilesNFolders(this.parentNode);
    return false;
 "
                    >
 </form>
.





Thursday, October 22, 2015

El Capitan 10.11.1

 :)

 Xcode update,
 iTunes,
 and Command Line Tools

#MelawanAsap



 Ini terjadi di Malang, bukan hutan, ini ladang tebu sehabis panen.

 Naik sepeda lewat beginian, hanya 20 meter terpapar asap, rasanya...

 Cuma sekian detik.

 Tak terbayangkan jika terpapar berbulan-bulan, di setiap tempat, di setiap waktu

List Files and Folder in Certain Folder in Google Drive using Google App Script

 Here it is.

 I used getFolderById() to determine the folder I want to list the files and folders inside.  I used home as variable name of the folder

 home.getFiles() is used to gets a collection of all files in home.

 home.getFolders() is used to gets a collection of all folders in home.

I have list and row  as array or tuple or 'list' to accommodate the result. Maybe it's wasting time to have two variable, but I plan to write code to list 'files and folders inside subfolders' recursively. I know maybe it didn't even need that array variable, :). But just in case...

Hold on, back up!


 Google App Script is fun, :)

 Here's my simple hello world, :)

What I did is create "form", which actually have no form at all, just submit button to activate listFilesNFolders(form) function on script (Code.gs file)

The code will return output 'tadaa...', 'heheh...', and 'Hello World!!!'.

Notice the html formatting, :)

Wednesday, October 21, 2015

#MelawanAsap


 Jika terus-terusan matahari tertutup asap hingga jadi berwarna orange atau malah tidak terlihat sama sekali, saya takut kalo tumbuhan tidak dapat berfotosintesis dengan sempurna dan tidak dapat menghasilkan oksigen yang optimal.

 Sesak karena asap, juga karena kurang oksigen.

 Eh, tunggu..., tumbuhan bukan tak maksimal berfotosintesis, tetapi tidak bisa lagi berfotosintesis, karena sudah jadi arang dan abu, :(

List All Files and Folders into Google Spreadsheet using Google App Script

 I updated my last code, so it will list all folders name too, in addition of files name.

 It will search the files and folders name in certain folder,

 get the name,

 the date it created,

 the size,

 the url address,

 thi file id,

 description,

 and the MIME type (except in folder, I hardcoded it by write string "folder")



 
function uploadFiles(form) {
  try {
    var dropbox = "Testing";
    var folders = DriveApp.getFoldersByName(dropbox);
    if (folders.hasNext()) {
      var folder = folders.next();
    } else {
      var folder = DriveApp.createFolder(dropbox);
    }
    folders = folder.getFoldersByName(form.myNIM);
    if(folders.hasNext()){
      var anak = folders.next();
    } else{
      var anak = folder.createFolder(form.myNIM);
    }
    var blob = form.myFile;    
    var file = anak.createFile(blob);    
    file.setDescription("Uploaded by " + form.myName);
   // listFilesAndFoldersInFolder(folder)
    list_all_files_and_folders_inside_one_folder_without_subfolders()
    return "File uploaded successfully " + file.getUrl();
    
  } catch (error) {
    
    return error.toString();
  }
  
}

function list_all_files_and_folders_inside_one_folder_without_subfolders(){
  var ss = SpreadsheetApp.openById("11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc");
  SpreadsheetApp.setActiveSpreadsheet(ss);
  var sh = SpreadsheetApp.getActiveSheet();
  sh.clear();
  var folder = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); // I change the folder ID  here 
  var list = [];
  //list.push(['Name','ID','Size']);
  list.push(["Name", "Date", "Size", "URL", "Download", "Description", "MIME"]);

  var files = folder.getFiles();
  while (files.hasNext()){
    file = files.next();
    var row = []
    //row.push(file.getName(),file.getId(),file.getSize());
    row.push(file.getName(),
             file.getDateCreated(),
             file.getSize(),
             file.getUrl(),
            "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
             file.getDescription(),file.getMimeType())
     
    list.push(row);
  }
  var files = folder.getFolders();
  while (files.hasNext()){
    file = files.next();
    var row = []
    //row.push(file.getName(),file.getId(),file.getSize());
    row.push(file.getName(),
             file.getDateCreated(),
             file.getSize(),
             file.getUrl(),
            "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
             file.getDescription(),"folder")
     
    list.push(row);
  }
  
   sh.getRange(1,1,list.length,list[0].length).setValues(list);
  
}

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



Working with Google Script

 I heard it's powerful,
 it could be integrated with Google Drive,
 so I decided to give it a try.

 Try to make a form Name, NIM, Offering, and a button to upload a file.

 Basically, it's super simple form.

 It will upload file to my Google Drive, place it in folder NIM (or create it if there's no folder match with NIM).

 As addition, I created spreadsheet manually and update its content, the list of files in the folders. (still got a trouble)
 
function uploadFiles(form) {
  
  try {
    
    var dropbox = "Testing";
    var folders = DriveApp.getFoldersByName(dropbox);
    
    if (folders.hasNext()) {
      var folder = folders.next();
    } else {
      var folder = DriveApp.createFolder(dropbox);
    }
    
    folders = folder.getFoldersByName(form.myNIM);
    if(folders.hasNext()){
      var anak = folders.next();
    } else{
      var anak = folder.createFolder(form.myNIM);
    }
    
    
    var blob = form.myFile;    
    var file = anak.createFile(blob);    
    file.setDescription("Uploaded by " + form.myName);
 
    
    listFilesInFolder(folder)
    
        
    return "File uploaded successfully " + file.getUrl();
    
  } catch (error) {
    
    return error.toString();
  }
  
}

function listFilesInFolder(folderName) {
 
  //var ssNew = SpreadsheetApp.create("Rekap");
  //https://drive.google.com/open?id=11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc
  //https://docs.google.com/spreadsheets/d/11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc/edit#gid=0
  //var ss = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/abc1234567/edit');
  var ss = SpreadsheetApp.openById("11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc");
 
  SpreadsheetApp.setActiveSpreadsheet(ss);
  
  var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  
  /*
  var myNewSheet = activeSpreadsheet.getSheetByName("Rekap");

  if (myNewSheet != null) {
        activeSpreadsheet.deleteSheet(myNewSheet);
  }

  myNewSheet = activeSpreadsheet.insertSheet();
  myNewSheet.setName("Rekap");
    
  */
  //0BxZS62a5NdNYUGxySmp2QW41OUU
  //var folder = DriveApp.getFoldersByName(folderName).next();
  var id = '0BxZS62a5NdNYUGxySmp2QW41OUU';
  var folder = DriveApp.getFolderById(id);
  var contents = folder.getFiles();
  
  var file, data, sheet = SpreadsheetApp.getActiveSheet();
  sheet.clear();
  
  sheet.appendRow(["Name", "Date", "Size", "URL", "Download", "Description", "Type"]);
  //sheet.appendRow(["Tadaa..."])
  for (var i = 0; i < contents.length; i++) {
 
    file = contents[i];
    
    if (file.getFileType() == "SPREADSHEET") {
      continue;
    }
        
    data = [ 
      file.getName(),
      file.getDateCreated(),
      file.getSize(),
      file.getUrl(),
      "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
      file.getDescription(),
      file.getFileType().toString()
    ];
    
    sheet.appendRow(data);
  
  }
  
};

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



Tuesday, October 20, 2015

#MelawanAsap

 Pake jasa pawang hujan seluruh Indonesia?

Working with Audio in Python

 What I did is read a .wav file, extract the raw audio data, (I use first 1/20 data for sample), transform it using Fast Fourier Transform, manipulate it (I only use the first cluster frequency spectrum ), transform it back using InverseFFT.

 I use matplotlib and numpy module to plot and compute.

 I also use sys and wave module as 'interface'.


import matplotlib.pyplot as plt
import numpy as np
import wave
import sys


spf = wave.open('violin2.wav','r')

#Extract Raw Audio from Wav File
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
fs = spf.getframerate()
print fs

#If Stereo
if spf.getnchannels() == 2:
    print 'Just mono files'
    sys.exit(0)

Time=np.linspace(0, len(signal)/fs, num=len(signal))
sample = []
st=[]
for i in np.arange(len(signal)/20):
    sample.append( signal[i])
    st.append(Time[i])

ft=np.fft.fft(sample)
pft=[]
for i in np.arange(len(ft)):
    if i<500: data-blogger-escaped-ample="" data-blogger-escaped-else:="" data-blogger-escaped-from="" data-blogger-escaped-ft="" data-blogger-escaped-i="" data-blogger-escaped-ift="" data-blogger-escaped-ignal="" data-blogger-escaped-ime="" data-blogger-escaped-pft.append="" data-blogger-escaped-pft="" data-blogger-escaped-plt.figure="" data-blogger-escaped-plt.grid="" data-blogger-escaped-plt.plot="" data-blogger-escaped-plt.show="" data-blogger-escaped-plt.title="" data-blogger-escaped-pre="" data-blogger-escaped-rue="" data-blogger-escaped-sample="" data-blogger-escaped-signal="" data-blogger-escaped-st="" data-blogger-escaped-wave...="">
.

Monday, October 19, 2015

Future, PIL, Numpy and Pylab in Python

 I use it to load an image,
 convert to grayscale,
 read the value of every pixel,
 print it,
 create the diagonal cross section and record the value
 and then plot it.

 Yeah, that's the story of code below


from __future__ import  print_function
from PIL import  Image
import numpy as np
from pylab import *

im  = Image.open("gb/lena.jpg",'r')
gr  = im.convert('L')
a   = im.load()
#b   = gr.load()
b   =np.asarray(gr.getdata(),dtype=np.float64).reshape((gr.size[1],gr.size[0]))

c = []
for i in arange(len(b[0])):
    c.append(b[i][i])

b   =np.asarray(b,dtype=np.uint8)


img = Image.fromarray(b,mode='L')
img.save('gb/gray.jpg')

print('a[0,0]    = ',a[0,0])
print('a[0,0][0] = ',a[0,0][0])
print('a[0,0][1] = ',a[0,0][1])
print('a[0,0][2] = ',a[0,0][2])
print(b[0,0])

plot (c)

xlabel('i')
ylabel('A')
title('cross section')
grid(True)
savefig("gb/test.png")
show()

.




:)

 Melihat koreografi Bruno Mars dan The Hooligans, jadinya malah teringat Rhoma Irama dan Soneta

Sunday, October 18, 2015

Read Pixel Value of Image using Python and PIL Module

 Open the Image to im using Image.open() syntax

 Load the value of im into a and now we have 2D tuple and live become easier, :)

.
from __future__ import  print_function
from PIL import  Image

im = Image.open("gb/lena.jpg")
a = im.load()

print('a[0,0]    = ',a[0,0])
print('a[0,0][0] = ',a[0,0][0])
print('a[0,0][1] = ',a[0,0][1])
print('a[0,0][2] = ',a[0,0][2])

If we run it


Nugrohos-MacBook-Air:citra nugroho$ python readIm.py 
a[0,0]    =  (226, 161, 119)
a[0,0][0] =  226
a[0,0][1] =  161
a[0,0][2] =  119
  .

Python Imaging Library on El Capitan

 Here's what I'm doing on EL Capitan.

 I have GCC come with Xcode but I use GCC 5.2.

 We could build from source; download the source at http://effbot.org/downloads/Imaging-1.1.7.tar.gz   and extract it


Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-2.7
copying PIL/__init__.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ArgImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BdfFontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BmpImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ContainerIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/CurImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/DcxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/EpsImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ExifTags.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FliImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FpxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GbrImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GdImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GifImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GimpGradientFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GimpPaletteFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GribStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IcnsImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IcoImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/Image.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageChops.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageCms.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageColor.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageDraw.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageDraw2.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageEnhance.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFileIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFilter.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFont.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageGL.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageGrab.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageMath.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageMode.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageOps.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImagePalette.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImagePath.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageQt.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageSequence.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageShow.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageStat.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageTk.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageTransform.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageWin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImtImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IptcImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/JpegImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/McIdasImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MicImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MpegImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MspImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/OleFileIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PaletteFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PalmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcdImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcfFontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PdfImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PixarImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PngImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PpmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PsdImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PSDraw.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SgiImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SpiderImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SunImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TarIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TgaImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TiffImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TiffTags.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/WalImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/WmfImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XbmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XpmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
running build_ext
--- using frameworks at /Library/Frameworks
building '_imaging' extension
creating build/temp.macosx-10.6-intel-2.7
creating build/temp.macosx-10.6-intel-2.7/libImaging
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.6-intel-2.7/_imaging.o
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) image_length, /*sq_length*/
    ^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) NULL, /*mp_length*/
    ^~~~~~~~~~~~~~
2 warnings generated.
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) image_length, /*sq_length*/
    ^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) NULL, /*mp_length*/
    ^~~~~~~~~~~~~~
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c decode.c -o build/temp.macosx-10.6-intel-2.7/decode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c encode.c -o build/temp.macosx-10.6-intel-2.7/encode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c map.c -o build/temp.macosx-10.6-intel-2.7/map.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c display.c -o build/temp.macosx-10.6-intel-2.7/display.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c outline.c -o build/temp.macosx-10.6-intel-2.7/outline.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c path.c -o build/temp.macosx-10.6-intel-2.7/path.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Access.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Access.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Antialias.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Antialias.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Bands.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Bands.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/BitDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/BitDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Blend.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Blend.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Chops.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Chops.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Convert.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Convert.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ConvertYCbCr.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ConvertYCbCr.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Copy.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Copy.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Crc32.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Crc32.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Crop.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Crop.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Dib.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Dib.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Draw.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Draw.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Effects.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Effects.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/EpsEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/EpsEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/File.c -o build/temp.macosx-10.6-intel-2.7/libImaging/File.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Fill.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Fill.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Filter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Filter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/FliDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/FliDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Geometry.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Geometry.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GetBBox.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GetBBox.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GifDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GifDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GifEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GifEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/HexDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/HexDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Histo.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Histo.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/JpegDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/JpegDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/JpegEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/JpegEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/LzwDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/LzwDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Matrix.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Matrix.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ModeFilter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ModeFilter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/MspDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/MspDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Negative.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Negative.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Offset.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Offset.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Pack.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Pack.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PackDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PackDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Palette.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Palette.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Paste.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Paste.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Quant.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Quant.o
libImaging/Quant.c:154:10: warning: cast to 'void *' from smaller integer type
      'int' [-Wint-to-void-pointer-cast]
   *valp=(void *)((*(int *)valp)+(*(int *)&newval));
         ^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/QuantHash.c -o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHash.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/QuantHeap.c -o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHeap.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcdDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcdDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcxDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcxDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcxEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcxEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Point.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Point.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RankFilter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RankFilter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RawDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RawDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RawEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RawEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Storage.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Storage.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/SunRleDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/SunRleDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/TgaRleDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/TgaRleDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Unpack.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Unpack.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/UnpackYCC.c -o build/temp.macosx-10.6-intel-2.7/libImaging/UnpackYCC.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/UnsharpMask.c -o build/temp.macosx-10.6-intel-2.7/libImaging/UnsharpMask.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/XbmDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/XbmDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/XbmEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/XbmEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ZipDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ZipDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ZipEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ZipEncode.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imaging.o build/temp.macosx-10.6-intel-2.7/decode.o build/temp.macosx-10.6-intel-2.7/encode.o build/temp.macosx-10.6-intel-2.7/map.o build/temp.macosx-10.6-intel-2.7/display.o build/temp.macosx-10.6-intel-2.7/outline.o build/temp.macosx-10.6-intel-2.7/path.o build/temp.macosx-10.6-intel-2.7/libImaging/Access.o build/temp.macosx-10.6-intel-2.7/libImaging/Antialias.o build/temp.macosx-10.6-intel-2.7/libImaging/Bands.o build/temp.macosx-10.6-intel-2.7/libImaging/BitDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Blend.o build/temp.macosx-10.6-intel-2.7/libImaging/Chops.o build/temp.macosx-10.6-intel-2.7/libImaging/Convert.o build/temp.macosx-10.6-intel-2.7/libImaging/ConvertYCbCr.o build/temp.macosx-10.6-intel-2.7/libImaging/Copy.o build/temp.macosx-10.6-intel-2.7/libImaging/Crc32.o build/temp.macosx-10.6-intel-2.7/libImaging/Crop.o build/temp.macosx-10.6-intel-2.7/libImaging/Dib.o build/temp.macosx-10.6-intel-2.7/libImaging/Draw.o build/temp.macosx-10.6-intel-2.7/libImaging/Effects.o build/temp.macosx-10.6-intel-2.7/libImaging/EpsEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/File.o build/temp.macosx-10.6-intel-2.7/libImaging/Fill.o build/temp.macosx-10.6-intel-2.7/libImaging/Filter.o build/temp.macosx-10.6-intel-2.7/libImaging/FliDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Geometry.o build/temp.macosx-10.6-intel-2.7/libImaging/GetBBox.o build/temp.macosx-10.6-intel-2.7/libImaging/GifDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/GifEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/HexDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Histo.o build/temp.macosx-10.6-intel-2.7/libImaging/JpegDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/JpegEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/LzwDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Matrix.o build/temp.macosx-10.6-intel-2.7/libImaging/ModeFilter.o build/temp.macosx-10.6-intel-2.7/libImaging/MspDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Negative.o build/temp.macosx-10.6-intel-2.7/libImaging/Offset.o build/temp.macosx-10.6-intel-2.7/libImaging/Pack.o build/temp.macosx-10.6-intel-2.7/libImaging/PackDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Palette.o build/temp.macosx-10.6-intel-2.7/libImaging/Paste.o build/temp.macosx-10.6-intel-2.7/libImaging/Quant.o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHash.o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHeap.o build/temp.macosx-10.6-intel-2.7/libImaging/PcdDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/PcxDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/PcxEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/Point.o build/temp.macosx-10.6-intel-2.7/libImaging/RankFilter.o build/temp.macosx-10.6-intel-2.7/libImaging/RawDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/RawEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/Storage.o build/temp.macosx-10.6-intel-2.7/libImaging/SunRleDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/TgaRleDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Unpack.o build/temp.macosx-10.6-intel-2.7/libImaging/UnpackYCC.o build/temp.macosx-10.6-intel-2.7/libImaging/UnsharpMask.o build/temp.macosx-10.6-intel-2.7/libImaging/XbmDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/XbmEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/ZipDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/ZipEncode.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -lz -o build/lib.macosx-10.6-intel-2.7/_imaging.so
building '_imagingtk' extension
creating build/temp.macosx-10.6-intel-2.7/Tk
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imagingtk.c -o build/temp.macosx-10.6-intel-2.7/_imagingtk.o -framework Tcl -framework Tk
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Tk/tkImaging.c -o build/temp.macosx-10.6-intel-2.7/Tk/tkImaging.o -framework Tcl -framework Tk
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imagingtk.o build/temp.macosx-10.6-intel-2.7/Tk/tkImaging.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -o build/lib.macosx-10.6-intel-2.7/_imagingtk.so -framework Tcl -framework Tk
building '_imagingmath' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imagingmath.c -o build/temp.macosx-10.6-intel-2.7/_imagingmath.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imagingmath.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -o build/lib.macosx-10.6-intel-2.7/_imagingmath.so
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      darwin 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
              [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
--------------------------------------------------------------------
--- TKINTER support available
*** JPEG support not available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
running build_scripts
creating build/scripts-2.7
copying and adjusting Scripts/pilconvert.py -> build/scripts-2.7
copying and adjusting Scripts/pildriver.py -> build/scripts-2.7
copying and adjusting Scripts/pilfile.py -> build/scripts-2.7
copying Scripts/pilfont.py -> build/scripts-2.7
copying and adjusting Scripts/pilprint.py -> build/scripts-2.7
changing mode of build/scripts-2.7/pilconvert.py from 644 to 755
changing mode of build/scripts-2.7/pildriver.py from 644 to 755
changing mode of build/scripts-2.7/pilfile.py from 644 to 755
changing mode of build/scripts-2.7/pilfont.py from 644 to 755
changing mode of build/scripts-2.7/pilprint.py from 644 to 755
running install_lib
creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/__init__.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imaging.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imagingmath.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imagingtk.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ArgImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BdfFontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BmpImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BufrStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ContainerIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/CurImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/DcxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/EpsImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ExifTags.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FitsStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FliImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FpxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GbrImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GdImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GifImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GimpGradientFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GimpPaletteFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GribStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/Hdf5StubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IcnsImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IcoImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/Image.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageChops.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageCms.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageColor.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageDraw.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageDraw2.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageEnhance.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFileIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFilter.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFont.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageGL.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageGrab.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageMath.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageMode.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageOps.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImagePalette.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImagePath.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageQt.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageSequence.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageShow.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageStat.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageTk.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageTransform.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageWin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImtImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IptcImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/JpegImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/McIdasImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MicImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MpegImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MspImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/OleFileIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PaletteFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PalmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcdImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcfFontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PdfImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PixarImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PngImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PpmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PsdImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PSDraw.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SgiImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SpiderImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SunImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TarIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TgaImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TiffImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TiffTags.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/WalImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/WmfImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XbmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XpmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XVThumbImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/__init__.py to __init__.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ArgImagePlugin.py to ArgImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BdfFontFile.py to BdfFontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BmpImagePlugin.py to BmpImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BufrStubImagePlugin.py to BufrStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ContainerIO.py to ContainerIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/CurImagePlugin.py to CurImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/DcxImagePlugin.py to DcxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/EpsImagePlugin.py to EpsImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ExifTags.py to ExifTags.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FitsStubImagePlugin.py to FitsStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FliImagePlugin.py to FliImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FontFile.py to FontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FpxImagePlugin.py to FpxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GbrImagePlugin.py to GbrImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GdImageFile.py to GdImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GifImagePlugin.py to GifImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GimpGradientFile.py to GimpGradientFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GimpPaletteFile.py to GimpPaletteFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GribStubImagePlugin.py to GribStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Hdf5StubImagePlugin.py to Hdf5StubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IcnsImagePlugin.py to IcnsImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IcoImagePlugin.py to IcoImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py to Image.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageChops.py to ImageChops.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageCms.py to ImageCms.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageColor.py to ImageColor.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageDraw.py to ImageDraw.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageDraw2.py to ImageDraw2.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageEnhance.py to ImageEnhance.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFile.py to ImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFileIO.py to ImageFileIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFilter.py to ImageFilter.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFont.py to ImageFont.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageGL.py to ImageGL.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageGrab.py to ImageGrab.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageMath.py to ImageMath.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageMode.py to ImageMode.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageOps.py to ImageOps.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImagePalette.py to ImagePalette.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImagePath.py to ImagePath.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageQt.py to ImageQt.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageSequence.py to ImageSequence.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageShow.py to ImageShow.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageStat.py to ImageStat.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTk.py to ImageTk.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTransform.py to ImageTransform.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageWin.py to ImageWin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImImagePlugin.py to ImImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImtImagePlugin.py to ImtImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IptcImagePlugin.py to IptcImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/JpegImagePlugin.py to JpegImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/McIdasImagePlugin.py to McIdasImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MicImagePlugin.py to MicImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MpegImagePlugin.py to MpegImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MspImagePlugin.py to MspImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/OleFileIO.py to OleFileIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PaletteFile.py to PaletteFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PalmImagePlugin.py to PalmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcdImagePlugin.py to PcdImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcfFontFile.py to PcfFontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcxImagePlugin.py to PcxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PdfImagePlugin.py to PdfImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PixarImagePlugin.py to PixarImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PngImagePlugin.py to PngImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PpmImagePlugin.py to PpmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PsdImagePlugin.py to PsdImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PSDraw.py to PSDraw.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SgiImagePlugin.py to SgiImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SpiderImagePlugin.py to SpiderImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SunImagePlugin.py to SunImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TarIO.py to TarIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TgaImagePlugin.py to TgaImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TiffImagePlugin.py to TiffImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TiffTags.py to TiffTags.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/WalImageFile.py to WalImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/WmfImagePlugin.py to WmfImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XbmImagePlugin.py to XbmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XpmImagePlugin.py to XpmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XVThumbImagePlugin.py to XVThumbImagePlugin.pyc
running install_scripts
copying build/scripts-2.7/pilconvert.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pildriver.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilfile.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilfont.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilprint.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilconvert.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pildriver.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilfile.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilfont.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilprint.py to 755
running install_egg_info
Writing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PIL-1.1.7-py2.7.egg-info
creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL.pth
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ 

Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> 


or using pip, you'll get Pillow, a fork of PIL


Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ pip install image
Collecting image
  Downloading image-1.4.1.tar.gz
Collecting pillow (from image)
  Downloading Pillow-3.0.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB)
    100% |################################| 2.9MB 68kB/s 
Collecting django (from image)
  Downloading Django-1.8.5-py2.py3-none-any.whl (6.2MB)
    100% |################################| 6.2MB 39kB/s 
Installing collected packages: pillow, django, image
  Running setup.py install for image
Successfully installed django-1.8.5 image-1.4.1 pillow-3.0.0
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ 
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> im=Image.open("lena.ppm")
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'Imagemage' is not defined
>>> im=Image.open("lena.ppm")
Traceback (most recent call last):
  File "", line 1, in 
  File "PIL/Image.py", line 1952, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'lena.ppm'
>>> im=Image.open("Images/lena.ppm")
>>> from __future__ import print_function
>>> print(im.format,im.size,im.mode)
PPM (128, 128) RGB
>>> im.show()
>>> 


.

Here's the output