This is my first use of the distutils package, so I accept that I might have
gone about things the wrong way.
Initially for my freetype 2 extension module, I used autoconf to build a
Setup.in file for building the module. I decided to switch to using distutils
recently, and in doing so wanted to still be able to provide the
--freetype-path and --with-pil-headers options to deal with different install
locations for freetype and PIL.
After a lot of poking around and many false starts, it seemed that there wasn't
a good way to handle command line arguments that didn't involve extensive
poking around in internal distutils objects.
Eventually I gave up and just used the following code:
handle={
'--freetype-path=' : optFreetypePath,
'--with-pil-headers=' : optPilHeaders
}
arg=1
while arg