django-sendfile icon indicating copy to clipboard operation
django-sendfile copied to clipboard

package naming conflict

Open fladi opened this issue 12 years ago • 5 comments

django_sendfile uses the same package namespace as http://code.google.com/p/pysendfile/. Maybe a better one would be "django_sendfile".

fladi avatar Jan 24 '13 08:01 fladi

Hi,

looking at the commit history of pysendfile it appears to be younger (first commit 3rd Feb 2011 vs 5th November 2010). I agree though that perhaps django_sendfile would be a better package name, but don't really want to have to break backwards compatibility.

Do you have any suggestions on how I could deal with this? Possibly aliasing "sendfile" if pysendfile is not installed?

TBH I would not expect this to be a big problem - if you use a virtualenv for each project you are unlikely to have both packages installed.

cheers,

John

johnsensible avatar Jan 24 '13 09:01 johnsensible

I'm seeing this just as a Debian package maintainer. Right now I have to patch setup.py to change the package name and therefor the handling of a prospective Debian django_sendfile package would diverge from any upstream documentation or tutorials by third parties.

I gave the detection of a naming conflict a shot but I'd deem my approach rather fragile as it involves tinkering with loaded modules and paths. I can issue a pull-request if you want.

fladi avatar Jan 24 '13 11:01 fladi

Sorry, not really familiar with Debian package maintenance - would you care to enlighten me a bit further?

Is pysendfile already a Debian package? Are you planning on creating a Debian package of Django sendfile?

I could possibly do a 1.0 release with a new name and update the docs etc to match - would just be friendly to have some way of letting people know of the change if they run old code against the new release...

johnsensible avatar Jan 24 '13 16:01 johnsensible

Yes, pysendfile is already packaged for Debian and thus already occupies the sendfile namespace.

I'd file an Intention-to-package (ITP) bug within Debian stating that I would like to package django-sendfile for its package repository. But this is currently blocked because of the namespace conflict ....

fladi avatar Nov 06 '13 14:11 fladi

Any news on this? I tried to come up with a namespace transitioning scheme but none of them seem to work without at least providing a sendfile/__init__.py from within the django-sendfile package.

fladi avatar Sep 03 '15 10:09 fladi