Re: [Distutils] disutils2 tests and python 2.5

2010-11-19 Thread Roumen Petrov

Éric Araujo wrote:

Hi Roumen,

A recent change in d2.run has broken test_config.  I propose to revert 
the change.
If Tarek agrees, he'll pull 
http://bitbucket.org/Merwok/distutils2/changeset/593109ce2549


Thank you for the testing!

Ok thanks . Now after patch the reported issue is fixed and results is

==
FAIL: test_find_files (distutils2.tests.test_mkcfg.MkcfgTestCase)
--
Traceback (most recent call last):
  File "/distutils2/trunk/distutils2/tests/test_mkcfg.py", line 40, 
in test_find_files

['setup.cfg', 'README', 'data/data1'])
AssertionError: Lists differ: ['README', 'setup.cfg', 'data/... != 
['setup.cfg', 'README', 'data/...


First differing element 0:
README
setup.cfg

- ['README', 'setup.cfg', 'data/data1']
+ ['setup.cfg', 'README', 'data/data1']

--
Ran 259 tests in 15.501s

FAILED (failures=1, skipped=19)

Roumen

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] disutils2 tests and python 2.5

2010-11-19 Thread Fred Drake
On Wed, Nov 17, 2010 at 5:02 PM, Éric Araujo  wrote:
> I wanted to avoid that.  I’m sure one of the new TestCase methods checks
> for “same items”.

I guess that's fine for the d2 tests.  I should spend a little more
time looking at u2 to determine if it makes sense to start using that
in tests at work (where it adds a dependency, and possibly some
re-knitting of base classes).


  -Fred

--
Fred L. Drake, Jr.    
"A storm broke loose in my mind."  --Albert Einstein
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] installing to a non-standard directory

2010-11-19 Thread K. Richard Pixley
I'm trying to install to a non-standard directory.  Something akin to 
"python setup.py install --prefix=`pwd`/junk" using gnu makefile 
standards semantics for --prefix but I can't seem to find the right 
arguments to install to make this happen.  The closest I can seem to 
find is:


python setup.py install --prefix=`pwd`/junk --install-layout=unix

But that returns errors:

   distutils.errors.DistutilsError: can't create or remove files in
   install directory

   The following error occurred while trying to add or remove files in the
   installation directory:

[Errno 2] No such file or directory:
   
'/home/rich/projects/rcmp/junk/lib/python2.6/site-packages/test-easy-install-12743.pth'

   The installation directory you specified (via --install-dir,
   --prefix, or
   the distutils default setting) was:

/home/rich/projects/rcmp/junk/lib/python2.6/site-packages/

   This directory does not currently exist.  Please create it and try
   again, or
   choose a different installation directory (using the -d or --install-dir
   option).

Although there doesn't appear to be any --install-dir option.

Can anyone explain what any of the 13 options related to this are 
intended to do?  Or better, can anyone tell me which one I want?


--rich
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] installing to a non-standard directory

2010-11-19 Thread P.J. Eby

At 03:18 PM 11/19/2010 -0800, K. Richard Pixley wrote:

I'm trying to install to a non-standard directory.


Why?  It makes a difference as to what the best way to do it is.

For example, if you're planning to install a Python application or 
create a restricted development environment, you might be better off 
using a virtualenv.  Or, alternatively, you may want to configure 
your ~/.pydistutils.cfg to set the default installation paths rather 
than having to specify them on the command line for every package you install.



distutils.errors.DistutilsError: can't create or remove files in 
install directory


The following error occurred while trying to add or remove files in the
installation directory:

[Errno 2] No such file or directory: 
'/home/rich/projects/rcmp/junk/lib/python2.6/site-packages/test-easy-install-12743.pth'


The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/home/rich/projects/rcmp/junk/lib/python2.6/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).


As the above says, the path you're trying to install to doesn't 
exist.  (The next thing you'll find after you fix that, is that it 
isn't on your PYTHONPATH.)


What are you trying to install, and why do you want to install it in 
that specific directory?


___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig