Thanks for the help.
I gave it a try after downloading and installing VC++ Express.
Had to make a couple modifications to the setup.py file.
However get the following errors:

# first run using format=msi
C:\Documents and Settings\XPMUser\My Documents\PyUSB-1.6\PyUSB-1.6>python 
setup.py bdist --format=msi
running bdist
running bdist_msi
running build
running build_py
copying d2xx\defines.py -> build\lib.win32-2.7\d2xx
copying d2xx\__init__.py -> build\lib.win32-2.7\d2xx
running build_ext
building 'd2xx._d2xx' extension
error: Unable to find vcvarsall.bat


# Call vxvarsall.bat from the commandline....
C:\Documents and Settings\XPMUser\My Documents\PyUSB-1.6\PyUSB-1.6>vcvarsall.bat

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

# Try again using wininst instead of msi....
C:\Documents and Settings\XPMUser\My Documents\PyUSB-1.6\PyUSB-1.6>python 
setup.py bdist --format=wininst
running bdist
running bdist_wininst
running build
running build_py
copying d2xx\defines.py -> build\lib.win32-2.7\d2xx
copying d2xx\__init__.py -> build\lib.win32-2.7\d2xx
running build_ext
building 'd2xx._d2xx' extension
error: Unable to find vcvarsall.bat

Bill




-----Original Message-----
From: wander.lairson [mailto:wander.lair...@gmail.com] 
Sent: Friday, July 22, 2011 12:58 PM
To: pyusb-users@lists.sourceforge.net
Subject: Re: [pyusb-users] PyUSB with Python 2.7

2011/7/22 Bill Patterson <bpatter...@awarepoint.com>:
> Is there an installer available for Python 2.7? My company wants to move all
> of our scripts onto the same version, however we have a couple that use
> PyUSB to discover and connect and control test devices.
>
I guess you are talking about PyUSB 0.4.3. At the time of release, the
current version used to be 2.6. I haven't updated to 2.7 since then,
and nowadays I have no Windows workstation to generate a new one (this
is one of the reasons PyUSB development is frozen). I can upload an
installer as soon as I can, but generating one isn't that hard, you
need to have Python 2.7 installed (of course), libusb-win32 and the
Visual C++ version which Python was built with (you can use Express
Version, I guess). With that, enter in Visual C++ command prompt, go
to PyUSB folder and run "python setup.py bdist --format=wininst" or
"python setup.py bdist --format=msi". MSI installer is kind of new and
I haven't tried that, took it from Python docs. More details can be
found here: http://docs.python.org/distutils/builtdist.html.

Don't forget that you have to make libusb-win32 include and lib files
available to Visual C++. The easiest way is to copy them to Visual C++
respective folders.

Regards,
Wander

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to