Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19182 > unrolled thread

Masking a dist package with a copy in my own package

Started bySam Simmons <sam@samiconductor.com>
First post2012-01-20 19:46 -0800
Last post2012-01-21 18:28 -0800
Articles 2 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Masking a dist package with a copy in my own package Sam Simmons <sam@samiconductor.com> - 2012-01-20 19:46 -0800
    Re: Masking a dist package with a copy in my own package Sam Simmons <sam@samiconductor.com> - 2012-01-21 18:28 -0800

#19182 — Masking a dist package with a copy in my own package

FromSam Simmons <sam@samiconductor.com>
Date2012-01-20 19:46 -0800
SubjectMasking a dist package with a copy in my own package
Message-ID<20992811.215.1327117584953.JavaMail.geo-discussion-forums@yqcz12>
Hey all,

I'm using twisted in a project and have run into a class that's in version 11.1 but not 8.2 in OSX. I was thinking to get it working for mac users I could just extract the 11.1 twisted package and through it under my package. e.g.

project/
  __init__.py
  twisted/
    __init__.py
  ...

When running anything, it imports from the local 11.1 twisted, but zope throws a warning:

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/__init__.py:1: UserWarning: Module twisted was already imported from /path/to/project/twisted/__init__.pyc, but /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python is being added to sys.path
  __import__('pkg_resources').declare_namespace(__name__)

Is there an elegant way to give mac users vers 11.1 other than copying in package and possibly renaming it?

Thanks!

[toc] | [next] | [standalone]


#19197

FromSam Simmons <sam@samiconductor.com>
Date2012-01-21 18:28 -0800
Message-ID<14122265.730.1327199282065.JavaMail.geo-discussion-forums@yqbc11>
In reply to#19182
I just installed 2.7... should have done this a while ago. pip finally works!

Thanks!

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web