You are not logged in.

#1 2014-03-02 18:26:28

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Where to put python2-numba and python-numba

Hi,

I am very new to the AUR packaging.

I tried to complie python2-numba-git and python-numba-git with AUR.

python2-numba was installed with no problem (solved a small one by changing the git repo version), following the default PKGBUILD file.

Appparently, it created 'numba' and 'pycc' file in /usr/bin .

When I tried to install python-numba,  the following

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
(1/1) loading package files                                    [##################################] 100%
(1/1) checking for file conflicts                              [##################################] 100%
error: failed to commit transaction (conflicting files)
python-numba-git: /usr/bin/numba exists in filesystem
python-numba-git: /usr/bin/pycc exists in filesystem
Errors occurred, no packages were upgraded.

My guess is that I can fix this by editting the PKGBUILD and changing the installation location.

Is this correct/safe thing to do? Where would you suggest I put the numba and pycc file?

thx

Offline

#2 2014-03-03 13:23:07

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Where to put python2-numba and python-numba

Put it in /usr/local/bin ?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-03-03 16:50:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Where to put python2-numba and python-numba

Rexilion wrote:

Put it in /usr/local/bin ?

Um, no.

@hellolj, unfortunately there's not a good answer if you really need both. If it's a program, you should only need one or the other. If it's a lib, it shouldn't be putting files in /usr/bin. If it's both, you have to rename the files in usr/bin so that they don't conflict, but you have to be aware of what those files do and what renaming them will do to other programs that use them.

Offline

Board footer

Powered by FluxBB