unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Proposal: Adding unversioned aliases to python3 binaries
@ 2016-04-16 14:42 Hartmut Goebel
  2016-04-16 16:15 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-16 14:42 UTC (permalink / raw)
  To: guix-devel

Hi,

I'm stepping into problems packaging python modules again and again
since Python 3.4 is not available  as `python`. Same for pip, and other
binaries in the python-3 package.

I propose
a) for python 3: adding symlinks from the unversioned binary name (e.b.
python) to the versioned
   ones (e.g. python3.4).
b) for python 2: adding symlinks from version binary names to unversion
ones -- for symmetry.


I'd appreciate if somebody more skilled in guix could implement this
(soon :-), so I could continue packaging stuff required for testing the
django framework.


Here is a list of required aliases for python 3:

easy_install-3.4 -> easy_install
idle -> idle3.4
pip -> pip3.4
pydoc -> pydoc3.4
python -> python3.4
python-config -> python3.4-config

And here for python 2:

2to3-2.7 -> 2to3*
idle2 -> idle
idle2.7 -> idle
pydoc2 -> pydoc
pydoc2.7 -> pydoc

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proposal: Adding unversioned aliases to python3 binaries
  2016-04-16 14:42 Proposal: Adding unversioned aliases to python3 binaries Hartmut Goebel
@ 2016-04-16 16:15 ` Leo Famulari
  2016-04-17 20:01   ` Hartmut Goebel
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-04-16 16:15 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

On Sat, Apr 16, 2016 at 04:42:15PM +0200, Hartmut Goebel wrote:
> Hi,
> 
> I'm stepping into problems packaging python modules again and again
> since Python 3.4 is not available  as `python`. Same for pip, and other
> binaries in the python-3 package.

Can you look at the 'python-wrapper' package and see if it would solve
this problem for you?

"description: This package provides wrappers for the commands of Python
3.x such that they can be invoked under their usual name---e.g.,
`python' instead of `python3'."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proposal: Adding unversioned aliases to python3 binaries
  2016-04-16 16:15 ` Leo Famulari
@ 2016-04-17 20:01   ` Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-17 20:01 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Am 16.04.2016 um 18:15 schrieb Leo Famulari:
> Can you look at the 'python-wrapper' package and see if it would solve
> this problem for you?

Thanks for the pointer. I'll try it out and report. Will take few days
unfortunately.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proposal: Adding unversioned aliases to python3 binaries
@ 2016-04-21 18:59 Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-21 18:59 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]

Hi,

Am 16.04.2016 um 18:15 schrieb Leo Famulari:
>/Can you look at the 'python-wrapper' package and see if it would solve/
>/this problem for you?/


This solves the problem only party: When adding "python-wrapped" as a
native-input to some module you need to explicitly *remove* it for
"package-with-python2", since there is no package "python2-wrapped".

So I change my proposal into:

Add python2-wrapper for symmetry with python-wrapper.

Comments?

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/feiertagsarbeit-bei-teletrust
Kolumne:
http://www.cissp-gefluester.de/2012-09-steht-ein-manta-fahrer-vor-der-uni


[-- Attachment #1.2: Type: text/html, Size: 1937 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-21 18:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-16 14:42 Proposal: Adding unversioned aliases to python3 binaries Hartmut Goebel
2016-04-16 16:15 ` Leo Famulari
2016-04-17 20:01   ` Hartmut Goebel
  -- strict thread matches above, loose matches on Subject: below --
2016-04-21 18:59 Hartmut Goebel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).