package-managers

How does the “replace” property work with composer?

自古美人都是妖i 提交于 2019-12-02 15:47:00
So how does the " replace " property work with composer ? I have read the composer document but still not understand it. Searching for more info hasn't answered my questions. When I look at the composer.json file on Laravel/Framework on github. I can't see how replace will work. Can someone explain to me how this works? And what the variable "self.version" will equal to? The Composer documentation gives two basic examples. I'll try to explain: Lists packages that are replaced by this package. This allows you to fork a package, publish it under a different name with its own version numbers,

Is there a package manager for Java like easy_install for Python? [closed]

二次信任 提交于 2019-12-02 14:02:51
Is there a package manager for Java like easy_install for Python ? I'm looking for a solution usable from the command line and not from an IDE. Pascal Thivent Maven does provide dependency management based on remote repositories (like the central repo ) that are browsable, searchable . Maven Ant Tasks (retired) use Maven's repositories to provide dependency management and more to Ant builds. Ant Ivy is another alternative to Maven Ant Tasks. MOP is another command line tool that leverages Maven's repository and dependencies. ctrueden Edit 2017-04-27: I have been disappointed by the lack of

How to install wxversion for Python

狂风中的少年 提交于 2019-12-02 07:57:37
I'm experimenting with the "SPy" Spectral Python library, using PyCharm, and I've gotten to the point where it tells me that wxversion was not found. How can I install wxversion? I'm very new to Python in general, so am I doing something else wrong? Here is my code: import matplotlib #matplotlib.use('WX') #Replaced by editing matplotlibrc from spectral import * img = open_image('92AV3C.lan') print img.__class__ print print img print print img.shape pixel = img[50,100] print print pixel.shape band6 = img[:,:,5] print print band6.shape print arr = img.load() print arr.__class__ print print arr

pip installing data files to the wrong place

橙三吉。 提交于 2019-12-01 17:45:55
The source for the package is here I'm installing the package from the index via: easy_install hackertray pip install hackertray easy_install installs images/hacker-tray.png to the following folder: /usr/local/lib/python2.7/dist-packages/hackertray-1.8-py2.7.egg/images/ While, pip installs it to: /usr/local/images/ My setup.py is as follows: from setuptools import setup setup(name='hackertray', version='1.8', description='Hacker News app that sits in your System Tray', packages=['hackertray'], data_files=[('images', ['images/hacker-tray.png'])]) My MANIFEST file is: include images/hacker-tray

What is the advantage of Pip over Anaconda?

别等时光非礼了梦想. 提交于 2019-12-01 17:35:59
So, I have seen What is the difference between pip and conda? . However, all of the answers there appear to be from Anaconda supporters. So, that made me wonder: why is pip still the standard? why hasn't everyone just moved to anaconda? I understand that anaconda only works with its own python, but is that the only disadvantage? Based on my limited experience, I would guess that the main advantage of pip over conda is the ability to still install packages that are not available from conda or Anaconda.org. https://conda.io/docs/using/pkgs.html#install-non-conda-packages - says basically the

Do conda environments have access to 'root' environment? (== system packages)?

时光毁灭记忆、已成空白 提交于 2019-12-01 16:06:05
问题 What is the 'root' environment in conda? Is it just an environment which uses (only) the system packages? Do other environments use the system packages as well (I would assume giving preference to their versions of duplicates)? Or would I need to install all of my packages in the environment where I want to use them? Is there a way of configuring this as an option? I have a system package installed but I can't import it when I'm in a conda environment. 回答1: The root environment is just the

How to get cabal to ignore the global package DB when using a sandbox

我是研究僧i 提交于 2019-12-01 15:28:40
I'm trying to install two libraries, Elm and yesod-platform , using a cabal sandbox on Ubuntu. The problem is, I'm using xmonad as my window manager. Thus, a bunch of Haskell libraries have been installed by my package manager. When trying to resolve dependencies, it's using the versions of the libraries installed by apt, and thus is giving a "maximum backjumps exceeded" error. How can I instruct Cabal to ignore any packages not in the Cabal sandbox, so that it will install fresh versinos of these packages in the sandbox and be able to resolve the dependcies? Too late probably, but still… I

call the default home screen from application

时光怂恿深爱的人放手 提交于 2019-12-01 07:57:00
问题 I need to call the default home screen that comes with my phone from my application which is also a home screen app. I've tried searching and find this ArrayList<Intent> intentList = new ArrayList<Intent>(); Intent intent=null; final PackageManager packageManager=getPackageManager(); for(final ResolveInfo resolveInfo:packageManager.queryIntentActivities(new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME), PackageManager.MATCH_DEFAULT_ONLY)) { intent=packageManager

debugging ld, “Inconsistency detected by ld.so”

落爺英雄遲暮 提交于 2019-12-01 04:23:13
I am trying to use a widget library called GLV for an application I am developing. I am running Linux Mint 17. I installed all the libraries and I have succeeded in building the GLV library, but when I try to running one of samples that was built I get this shared library error. Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed! Can anyone help me find out where the inconsistency in the shared library is coming from? More information In the README file it says GLV requires only OpenGL, GLU, and GLEW (Linux only). There are no

Nexus-compliant repository to get node and npm installers

て烟熏妆下的殇ゞ 提交于 2019-11-30 20:39:49
I am looking for a nexus-compliant repository where I can get a node installer (a nexus-compliant alternative to http://nodejs.org/dist/ . Context : In a java environment, our builds are processed by maven. Recently we add a javascript frontend app and I am trying to get it built via maven with the excellent plugin frontend-maven-plugin . The plugin installs node and npm, then run npm install and grunt build . Everything works perfectly. But we MUST put all our dependencies under nexus (or some locally proxified repository). About frontend dependencies: no problem since nexus 2.10 supports the