Am 11.12.2012 23:50, schrieb Yannick Roehlly:
> Hi Matthias,
> 
> Thanks for the quick answer.
> 
> Le mardi 11 décembre 2012 23:08:04 Matthias Klose a écrit :
>>  - the plat-linux2 directory is now renamed to plat-<multiarch>.
>>    I assume virtualenv uses plat-linux2 directly, however I can't
>>    find any reference to that in virtualenv.py.
>>    This will need a fix in the python-virtualenv package.
> 
> I had a quick look to the virtualenv source and I noticed in the 
> virtualenv_embedded/site.py this line:
> 
>   plat_path = os.path.join(path, 'plat-%s' % sys.platform)
> 
> But I'm not sure this is used in the Debian package. Nevertheless, on a multi-
> arch installation sys.platform is 'linux2'. Shouldn't it be the full 
> architecture name?

No. A part of the standard library must not be changed.  Proposing to change
this as:

  ma = sysconfig.get_config_var('MULTIARCH')
  if ma:
    plat_path = os.path.join(path, 'plat-%s' % ma)
  else:
    plat_path = os.path.join(path, 'plat-%s' % sys.platform)

hmm, except that sysconfig.get_config_var already relies on the platform path.
so maybe use glob('plat-*')?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to