suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

Change package name to pydicom #45

Open suever opened 10 years ago

suever commented 10 years ago

From darcymason@gmail.com on May 17, 2009 14:12:54

It's considered bad practice for the library name and it's import name to be different -- it is confusing for users.

So, should change the import name to "pydicom", which would require:

Original issue: http://code.google.com/p/pydicom/issues/detail?id=45

suever commented 10 years ago

From darcymason@gmail.com on June 11, 2009 20:31:06

Set difficulty. Not too hard but needs folder rename in svn repository, and a big search and replace throughout all source files. ?Is it possible to somehow install a "dicom" as well, with a deprecation warning?

Labels: Difficulty-Medium

suever commented 10 years ago

From Suever@gmail.com on September 18, 2012 14:38:34

I've been thinking about this change and have a few thoughts.

Ideally, we would allow the users to import dicom and then get a deprecation warning; however, asking around on the Python irc and other forums, it doesn't seem to be possible (without some severe abuse of distutils).

It seems that the unanimous answer to this issue was to create a new package (pydicom) and create a new release for the old one that throws deprecation warnings in init.py and tells the user to upgrade to the new package and informs them of the name change.

There are still a few issues with this though:

These are just some things that probably need to be thought through. It seems that the user-base for the library is large enough that we need to be careful with these large changes. I do agree that if we make this change though, that it should accompany addition of python3 support in 1.0.