~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to buildutils.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor, Julian Taylor
  • Date: 2012-02-19 14:53:20 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20120219145320-u8un3j0q1e82dx01
[ Julian Taylor ]
* New upstream release (Closes: #655793)
* added myself to Uploaders
* properly clean to allow building twice in a row
* ignore testsuite result due to random failures on armel and mips
  probably caused by libzmq or toolchain
* add Python3 to short description of py3 packages
* wrap-and-sort debian/
* add python-nose to build depends to get better test result output
* add python-numpy to build depends to get more tests
* use githubredir.debian.net in debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
        fatal("Please specify zmq prefix via `setup.py configure --zmq=/path/to/zmq` "
249
249
        "or copy libzmq into zmq/ manually prior to running bdist.")
250
250
    try:
251
 
        lib = pjoin(ZMQ, 'lib', libzmq)
 
251
        # resolve real file through symlinks
 
252
        lib = os.path.realpath(pjoin(ZMQ, 'lib', libzmq))
252
253
        print ("copying %s -> %s"%(lib, local))
253
254
        shutil.copy(lib, local)
254
255
    except Exception:
256
257
            fatal("Could not copy libzmq into zmq/, which is necessary for bdist. "
257
258
            "Please specify zmq prefix via `setup.py configure --zmq=/path/to/zmq` "
258
259
            "or copy libzmq into zmq/ manually.")
259
 
    finally:
260
 
        # link libzmq.dylib -> libzmq.1.dylib
261
 
        link = localpath('zmq',libzmq.replace('.1',''))
262
 
        if not os.path.exists(link):
263
 
            os.symlink(libzmq, link)
264
260
    
265
261
    if sys.platform == 'darwin':
266
262
        # patch install_name on darwin, instead of using rpath