Can't install via pip

31 views
Skip to first unread message

Andrew Ingram

unread,
Jan 30, 2010, 2:58:16 PM1/30/10
to django-polymorphic
I'm unable to install django-polymorphic using pip, this is due to the
lack of a setup.py. Unless there's a way to install via pip without a
setup.py that I'm not aware of.

Bert Constantin

unread,
Jan 31, 2010, 6:37:46 AM1/31/10
to django-polymorphic
On 30 Jan., 20:58, Andrew Ingram <a...@andrewingram.net> wrote:
> I'm unable to install django-polymorphic using pip, this is due to the
> lack of a setup.py.

I have not yet worked on regular packaging for django_polymorphic, so
right now the best (or easiest) way to install it is to copy the
"polymorphic"-directory into your Django project.

It might also be a bit early for regular packaging/release (it was
just two days ago that I reorganized django_polymorphic into a regular
Django app).

And to be honest, I hope that a user with some experience with python
packaging might consider contributing this, as I currently have no
such experience or knowledge.

Kind Regards,
Bert

Andrew Ingram

unread,
Feb 1, 2010, 9:47:29 AM2/1/10
to django-polymorphic

On 31 Jan., 11:37, Bert Constantin <bert.constan...@gmx.de> wrote:
> I have not yet worked on regular packaging for django_polymorphic, so
> right now the best (or easiest) way to install it is to copy the
> "polymorphic"-directory into your Django project.
>
> It might also be a bit early for regular packaging/release (it was
> just two days ago that I reorganized django_polymorphic into a regular
> Django app).
>
> And to be honest, I hope that a user with some experience with python
> packaging might consider contributing this, as I currently have no
> such experience or knowledge.
>
> Kind Regards,
> Bert

That's totally understandable. Normally I'd install it manually like
you suggest, but I need this to work with our bootstrap scripts.

Anyway, I've knocked up a quick setup.py that seems to work for me

http://gist.github.com/291716

This should be put in the root of the project alongside settings.py

I hope this helps.

- Andy

Bert Constantin

unread,
Feb 1, 2010, 12:34:22 PM2/1/10
to django-polymorphic
> That's totally understandable. Normally I'd install it manually like
> you suggest, but I need this to work with our bootstrap scripts.

I wondered why you would consider the ability to install the app/
module with pip important, but that's clear to me now.

> Anyway, I've knocked up a quick setup.py that seems to work for me

Thanks, Andrew. If you don't mind I'll include setup.py in my next
update (after testing that it works for me as well) and list you as a
contributing author (but think twice, you'll be the first).

Kind Regards,
Bert Constantin

Andrew Ingram

unread,
Feb 1, 2010, 4:22:25 PM2/1/10
to django-polymorphic

That sounds good to me!

Regards,
Andy

Reply all
Reply to author
Forward
0 new messages