[Distutils] Unable to install packages after specifying package version

2010-12-03 Thread devyan parmar
Hello,

i am trying to install package from my packageserver using PIP.

for example:
m trying
/bin/pip install --extra-index-url=http://mypkgserver/devpackage_name==2.4.12b

2.4.12b is the version of my package but in package server it is going as
2.4.12b_1 extra part in version is nothing but a build number which
getting generated from hudson JOB.
is setuptool avoids extra build number which goes with my pcakage version ??
coz if i try to install package it's gives me message No distributions at
all found .

is there anything wrong am doing in package version.??

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


Re: [Distutils] Unable to install packages after specifying package version

2010-12-03 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On 12/03/2010 05:55 AM, devyan parmar wrote:
 i am trying to install package from my packageserver using PIP. 
 
 for example:
 m trying
 /bin/pip install --extra-index-url=http://mypkgserver/dev
 package_name==2.4.12b
 
 2.4.12b is the version of my package but in package server it is going
 as 2.4.12b_1 extra part in version is nothing but a build number which
 getting generated from hudson JOB.
 is setuptool avoids extra build number which goes with my pcakage
 version ?? coz if i try to install package it's gives me message No
 distributions at all found .

No, neither setuptools nor pip will arbitrarily ignore parts of your
version number. You need to make sure the package appears in your index
with the same version numbering scheme you plan to use for installing it.

Carl
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz45CoACgkQFRcxmeyPUXJx6QCcDUt6PIf6khe+rA35sihP7vQ5
aI8An3mhLopQQfBUhsGxsPLYTMqp2hpD
=bEKu
-END PGP SIGNATURE-
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] specifying dependencies to latest major/minor

2010-12-03 Thread P.J. Eby

At 03:14 PM 12/3/2010 +0100, Alan Franzoni wrote:

Hello,
I've got some issues with dependency specification; this seems to
apply both to setuptools and distribute.

Let's suppose I want to have a dependency on a certain library
major.minor , because I want to depend on a certain API - which is
supposed to be stable for that lib unless at least the minor changes -
but I want to pick in any bugfix release they might end up with.

I'd like to do something like pick up the latest 1.1 release of mylib

The only way to do it seems to be this:

install_requires = [ mylib=1.1, 1.1.999 ]

if I use just == 1.1 , it picks 1.1.0 . If I use = 1.1 and 1.2.0, it
will pick beta releases for 1.2 as well.


Use =1.1,1.2dev.

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


Re: [Distutils] Unable to install packages after specifying package version

2010-12-03 Thread P.J. Eby

At 04:25 PM 12/3/2010 +0530, devyan parmar wrote:

Hello,

i am trying to install package from my packageserver using PIP.

for example:
m trying
/bin/pip install 
--extra-index-url=http://mypkgserver/devhttp://mypkgserver/dev 
package_name==2.4.12b


2.4.12b is the version of my package but in package server it is 
going as 2.4.12b_1 extra part in version is nothing but a build 
number which getting generated from hudson JOB.

is setuptool avoids extra build number which goes with my pcakage version ??


No.  That's why it's not being found.  Ask for 
package_name==2.4.12b-1 instead.


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


[Distutils] zc.buildout fails to use system-installed dep?

2010-12-03 Thread Alan Franzoni
Hello,
there's a problem with zc.buildout that I can reproduce very easily on
Ubuntu 10.10 (64 bit)

it seems that zc.buildout does not download the dependency from pypi
if the very same version is already available in the host system, but
then for some reason does not add it to sys.path and/or is unable to
use it for some reason; zope.testrunner hence fails on importing
zope.interface

python-zope.interface is installed at version 3.6.1, and
zope.testrunner seems to use that very same dependency.

Any workaround? I'll open an issue on launchpad in the weekend.

Do this in order to reproduce the problem:

# start
cd /tmp
mkdir -p MyProj/myproj
cd MyProj
cat EOM  buildout.cfg
[buildout]
parts = test
develop = myproj

[test]
recipe = zc.recipe.testrunner
eggs = myproj

EOM

cat EOM  myproj/setup.py
from setuptools import setup
setup(
name=myproj,
version=1.0.0,
description=myproj
)

EOM
wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py


python bootstrap.py --distribute  bin/buildout -vvv
bin/test
#end

output from buildout run:

a...@afra:/tmp/MyProj$ python bootstrap.py --distribute  bin/buildout
Downloading 
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Extracting in /tmp/tmpUAAumj
Now working in /tmp/tmpUAAumj/distribute-0.6.14
Building a Distribute egg in /tmp/tmphpzBsD
/tmp/tmphpzBsD/distribute-0.6.14-py2.6.egg
install_dir /tmp/tmphpzBsD
Creating directory '/tmp/MyProj/bin'.
Creating directory '/tmp/MyProj/parts'.
Creating directory '/tmp/MyProj/eggs'.
Creating directory '/tmp/MyProj/develop-eggs'.
Generated script '/tmp/MyProj/bin/buildout'.
Upgraded:
  distribute version 0.6.14;
restarting.
Develop: '/tmp/MyProj/myproj'
install_dir /tmp/MyProj/develop-eggs/tmpoKKOZAbuild
Getting distribution for 'zc.recipe.testrunner'.
install_dir /tmp/MyProj/eggs/tmpQvIfIg
zip_safe flag not set; analyzing archive contents...
Got zc.recipe.testrunner 1.4.0.
Getting distribution for 'z3c.recipe.scripts=1.0.0'.
install_dir /tmp/MyProj/eggs/tmpQPz2RH
Got z3c.recipe.scripts 1.0.1.
Getting distribution for 'zope.testrunner'.
install_dir /tmp/MyProj/eggs/tmpGvi6JB
package init file 'src/zope/testrunner/testrunner-ex/__init__.py' not
found (or not a regular file)
Creating missing __init__.py for zope.testrunner.testrunner-ex
Got zope.testrunner 4.0.0.
Getting distribution for 'zc.recipe.egg=1.3.0'.
install_dir /tmp/MyProj/eggs/tmp_pJ4gb
Got zc.recipe.egg 1.3.2.
Getting distribution for 'zope.exceptions'.
install_dir /tmp/MyProj/eggs/tmpxRSjc1
Got zope.exceptions 3.6.1.
Installing test.
Generated script '/tmp/MyProj/bin/test'.
a...@afra:/tmp/MyProj$ bin/test
Traceback (most recent call last):
  File bin/test, line 20, in module
import zope.testrunner
  File 
/tmp/MyProj/eggs/zope.testrunner-4.0.0-py2.6.egg/zope/testrunner/__init__.py,
line 21, in module
import zope.testrunner.interfaces
  File 
/tmp/MyProj/eggs/zope.testrunner-4.0.0-py2.6.egg/zope/testrunner/interfaces.py,
line 21, in module
import zope.interface
ImportError: No module named interface





-- 
Alan Franzoni
--
contact me at pub...@[mysurname].eu
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] zc.buildout fails to use system-installed dep?

2010-12-03 Thread Attila Oláh
Hi,

On Fri, Dec 3, 2010 at 18:28, Alan Franzoni mail...@franzoni.eu wrote:
 Hello,
 there's a problem with zc.buildout that I can reproduce very easily on
 Ubuntu 10.10 (64 bit)

 it seems that zc.buildout does not download the dependency from pypi
 if the very same version is already available in the host system, but
 then for some reason does not add it to sys.path and/or is unable to
 use it for some reason; zope.testrunner hence fails on importing
 zope.interface

 python-zope.interface is installed at version 3.6.1, and
 zope.testrunner seems to use that very same dependency.

 Any workaround? I'll open an issue on launchpad in the weekend.

 Do this in order to reproduce the problem:

I ran your script, and the result ended with:
Total: 0 tests, 0 failures, 0 errors in 0.000 seconds.

I also have zope.interface 3.6.1 on my system. Gentoo, Python 2.7.1+.

$ eix zope.interface
[D] net-zope/zope-interface
 Available versions:  3.5.1 3.5.2 (~)3.5.3
 Installed versions:  3.6.1(06:23:08 10/23/10)
 Homepage:http://pypi.python.org/pypi/zope.interface
 Description: Interfaces for Python

Perhaps try adding this to the buildout config:

include-site-packages = true
allowed-eggs-from-site-packages =
zope.interface

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


Re: [Distutils] zc.buildout fails to use system-installed dep?

2010-12-03 Thread Alan Franzoni
I had only linux to test it with, and I could reproduce the bug on two
distinct Ubuntu 10.10 64 bit workstations.


It doesn't happen on Ubuntu 10.04, but that distro is got
zope.interface 3.5.something and I can see zope.interface gets
downloaded again.

It doesn't happen on mac os x with python 2.7 either, even though
zope.interface was installed through easy_install. I forgot to specify
that Ubuntu 10.10 is got Python 2.6.5.

I suspect it's something ubuntu-specific, maybe related to the fact
that it's not an egg-installed package, but a .deb installed one -
some interference between the two install systems is not unlikely.

Just some questions for you, Attila:

- was your zope.interface installed through portage or via easy_install/pip?
- can you see zope.interface 3.6.1 being downloaded during the
buildout launch phase?

-- 
Alan Franzoni
--
contact me at pub...@[mysurname].eu
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] zc.buildout fails to use system-installed dep?

2010-12-03 Thread Attila Oláh
Hi,

On Fri, Dec 3, 2010 at 20:35, Alan Franzoni mail...@franzoni.eu wrote:
 - was your zope.interface installed through portage or via easy_install/pip?
Portage.

This is what I get from IPython though:

In [1]: import zope
In [2]: zope

Out[2]: module 'zope' (built-in)
In [3]: import zope.interface

In [4]: zope.interface
Out[4]: module 'zope.interface' from
'/usr/lib64/python2.7/site-packages/zope/interface/__init__.pyc'

aat...@aiur ~ $ ls /usr/lib/python2.7/site-packages/zope*
/usr/lib/python2.7/site-packages/zope.interface-3.6.1-py2.7-nspkg.pth

/usr/lib/python2.7/site-packages/zope:
interface

/usr/lib/python2.7/site-packages/zope.interface-3.6.1-py2.7.egg-info:
PKG-INFO  SOURCES.txt  dependency_links.txt  namespace_packages.txt
not-zip-safe  requires.txt  top_level.txt

 - can you see zope.interface 3.6.1 being downloaded during the
 buildout launch phase?

Nope, I see something like Egg from site-packages: zope.interface

I guess Gentoo installs a valid egg using portage, and buildout can
recognize it.

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


[Distutils] easy_install from source?

2010-12-03 Thread skip

I installed the 0.39 version of python-sybase using easy_install -m.  That
worked fine, but that version is extremely old.  Is there a way to use
easy_install with the a checkout from the project's version control system?
I see this in the help output:

  --local-snapshots-ok (-l)  allow building eggs from local checkouts

but how do I specify the location of the local checkout?

Thanks,

-- 
Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] easy_install from source?

2010-12-03 Thread P.J. Eby

At 03:05 PM 12/3/2010 -0600, s...@pobox.com wrote:


I installed the 0.39 version of python-sybase using easy_install -m.  That
worked fine, but that version is extremely old.  Is there a way to use
easy_install with the a checkout from the project's version control system?
I see this in the help output:

  --local-snapshots-ok (-l)  allow building eggs from local checkouts

but how do I specify the location of the local checkout?


Just easy_install /path/to/checkout, assuming there's a 
/path/to/checkout/setup.py. (The -l option only enables the use of 
packages that were locally installed using 'setup.py develop'.)





Thanks,

--
Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


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