Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18532 closed defect (fixed)

django - 1.0.2 - does not follow slotting conventions

Reported by: krunk7@… Owned by: arthur@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: mf2k (Frank Schima)
Port: py26-django py25-django

Description (last modified by mf2k (Frank Schima))

All versions of django ports install a script named: django-admin.py into /opt/local/bin.

This causes conflicts between different versions, e.g. py26-django & py25-django

--->  Installing py26-django @1.0.2_0
--->  Activating py26-django @1.0.2_0
Error: Target org.macports.activate returned: Image error: /opt/local/bin/django-admin.py is being used by the active py25-django port.  Please deactivate this port first, or use the -f flag to force the activation.

Suggestion:

In the post-destroot or destroot phase, rename conflicting scripts with slot version. E.G. django-admin26.py or some such.

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to arthur@…
Port: py26-django py25-django added

In the future, please use the proper WikiFormatting.

comment:2 Changed 15 years ago by arthur@…

You're right but renaming the script to "django-admin$VERSION.py" would make the bash-completion unusable because the completion script explicitly checks for a file named "django-admin.py". This needs a custom patch applied to the bash-completion file which changes the checks for "django-admin.py" to the new version specific filename of the script.

comment:3 in reply to:  2 Changed 15 years ago by krunk7@…

Replying to arthur@…:

You're right but renaming the script to "django-admin$VERSION.py" would make the bash-completion unusable because the completion script explicitly checks for a file named "django-admin.py". This needs a custom patch applied to the bash-completion file which changes the checks for "django-admin.py" to the new version specific filename of the script.

If python_select were updated to create a sym link from django-admin.py to the modified one, django-admin26.py or some such, wouldn't bash-completion still work?

comment:4 Changed 15 years ago by arthur@…

This will be fixed once #18903 is commited.

comment:5 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:6 Changed 15 years ago by arthurk@…

Resolution: fixed
Status: newclosed

Fixed in r48732, r48733 and r48734

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.