delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/19/12:49:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 19 Mar 2003 12:53:49 -0500
From: Greg Freemyer <freemyer AT norcrossgroup DOT com>
Subject: re[2]: Building a win32 python extension from cygwin?
To: Jason Tishler <jason AT tishler DOT net>
cc: <cygwin AT cygwin DOT com>
Mime-Version: 1.0
Organization: Norcross Group
Message-Id: <20030319174316.RBXK25382.imf58bis.bellsouth.net@tiger2>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h2JHndo03621

 >>  Greg,

 >>  On Tue, Mar 18, 2003 at 04:56:49PM -0500, Greg Freemyer wrote:
 >>  >  >>  What is "installer"?
 >>  > 
 >>  > A packaging solution that allows python apps to be deployed without
 >>  > having to deploy python itself.
 >>  > 
 >>  > http://www.mcmillan-inc.com/install1.html

 >>  Ah, it sounded familiar -- thanks for the refresher.

 >>  > My problem was that libpython2.2.dll could not be found in the specified
 >>  path.

 >>  Please run cygcheck on your .exe (installation package) and post the
 >>  output.  For example:

 >>  $ cygcheck foo.exe

===
$ cygcheck rdiff-backup.exe
Found: .\rdiff-backup.exe
.\rdiff-backup.exe
  C:\cygwin\bin\libpython2.2.dll
    C:\cygwin\bin\cygwin1.dll
      C:\WINNT\System32\KERNEL32.dll
        C:\WINNT\System32\ntdll.dll
  C:\cygwin\bin\cygz.dll
Use -h to see help about each section
===

If those are the only dependencies, maybe it would not be too bad to just build up a deployment CD with the above on it.

Not quite what I wanted, but not too bad.

 >>  > That does not make any sense because the exe was supposed to be self
 >>  > contained and not assume any pre-existing cygwin/python dlls.

 >>  Agreed, but the above indicates otherwise.

 >>  >  >>  Error messages?  Build command lines?
 >>  > 
 >>  > =====  From a freshly started python (win32 IDLE)
 >>  > Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
 >>  > Type "copyright", "credits" or "license" for more information.
 >>  > IDLE 0.8 -- press F1 for help
 >>  > >>> import _librsync
 >>  > Traceback (most recent call last):
 >>  >   File "<pyshell#0>", line 1, in ?
 >>  >     import _librsync
 >>  > ImportError: DLL load failed: The specified module could not be found.

 >>  If _librsync is dependent on libpython2.2.dll, then the above error make
 >>  sense.

Please, don't worry about this.  By following the recipe you pointed at, I think I can eliminate this issue.

But it looks like it is.  (Especially not good since I am trying to use Win32 python, not cygwin python.)

$ cygcheck _librsync.dll
Found: .\_librsync.dll
.\_librsync.dll
  C:\cygwin\bin\cygwin1.dll
    C:\WINNT\System32\KERNEL32.dll
      C:\WINNT\System32\ntdll.dll
  C:\cygwin\bin\libpython2.2.dll
 >>  Jason

Thanks
Greg

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019