I am trying to install apache-airflow (pip install apache-airflow) and I have to use a custom nexus to get it from. It is downloaded fine, but after the download it tries to run its setup.py which has got its dependencies to download, it tries to get its dependencies from https://pypi.org/ which is blocked in my environment ( I cant use that). Is there a way to tell it to look for all its dependencies in my nexus rather than https://pypi.org/
Have a look at https://packaging.python.org/guides/hosting-your-own-index/ to setup custom PyPI repository. Once that is setup, pip will use that to download dependencies.
Related
The answer is:
We get this error when we try to install the wireless tools in termux using the below command
pkg install wireless-tools
This is because the termux-root-packages repository are not subscribed. To subscribe to the root repository, please use the below comand.
pkg install root-repo
Once the root repository is installed, you can install the wireless tools without an error.
pkg install wireless-tools
Hope this info helps.
I'm using GOCD for continuous deployment. I installed the Nexus plugin and configured the repository successfuly. But when I try to make a new pipeline using the repository, the plugin can not find any package.
At first I thought the problem was my .tar.gz packages, but then I tried with .rpm package and .jar (maven) package, the result is always the same No packages found
Additional information
GOCD version: 19.2.0-8641
Nexus version: OSS 3.15.2-01
go-nexus-poller-plugin version: v1.0.2
I am starting to experiment with conan. I found this GitHub repository but I am not sure what to do with it.
I would like to install log4cxx via conan install.
That github repository belongs to an pre conan 1.0 recipe. There are some repositories for packages and binaries you can directly install with conan install:
Conan-center: https://bintray.com/conan/conan-center
Bincrafters: https://bintray.com/bincrafters/public-conan
None of them have right now log4cxx. If you need that dependency, the best would be trying to update it to conan 1.0, collaborating with the original author, or with the bincrafters community in https://github.com/bincrafters.
The process to try if the recipe works is:
git clone & cd repo
conan create . user/channel
That will fire the local creation of the package. In the case of that log4cxx repo, it is failing in my case, because of the self.run("sudo apt-get install --yes libapr1-dev libapr1 libaprutil1-dev libaprutil1"), as I am running in Windows. The recipe seems to be prepared only for Linux/Apt. There are now a dedicated recipe method system_requirements() that should contain the installation of system level packages, instead of the build() method.
Now a bit of background of my current setup:
I have Python3.3 running on Centos 6. I'm currently working on a web application using Flask that runs on Apache 2.2.15 with mode WSGI 4.5.3 and virtualenv 15.0.2.
pip --version pip 8.1.2 from /usr/local/bin/lib/python3.3/site-packages (python 3.3)
I have installed pysvn with pip and when I run pip show pysvn says
Location: /usr/local/bin/lib/python3.3/site-packages
755 permissions recursively set to /usr/local/bin/lib/python3.3/site-packages. And I passed --system-site-packages argument to virtualenv to use the global site packages.
Even when I try to import the package from python interpreter it does not work. So it is not specific to my virtualenv setup but rather a global problem.
I must mention that other packages installed with pip work perfectly fine (i.e. flask).
I've exhausted all other avenues before coming forward to you guys. Any suggestion would be highly appreciated as I ran out of ideas.
L.E.
I did manage to install it in the end. I'm not completly sure yet why and how but I presume is was compatibility issue.
First of all I have uninstalled svn 1.6+ and installed version 1.8.16 instead which seems to be tested against the latest two versions.
Second, I have uninstalled the troublesome pysvn instance and installed pysvn-1.8.0 workbench "sudo /var/www/FlaskApp/FlaskApp/flask/bin/pip install pysvn-1.8.0.tar.gz". In this case I have installed it my local environment. The 1.9.0 version of pysvn did not work.
L.L.E.
False positive, still doesn't work. I'm going to interact with svn via command line from my script.
L.L.L.E.
After installing svn 1.8.16 and svn-devel along with the rest of dependencies described in the readme file I have managed to successfully install it from the source fallowing the instructions.
Thanks for your help Barry.
pysvn is not available from PyPI because PyPI has no way to allow me to upload pysvn for each supported SVN version. Let alone deal with the issues of installing on a Linux distro given the choices for pysvn dependencies.
(APR, SVN, OpenSSL etc).
Fedora packages pysvn for the Fedora release.
I'm assuming that means it is on RHEL and therefore packaged by CentOS.
(But I do not have RHEL or CentOS to check this on)
If you find that a package is not available for your CentOs is not hard
to build pysvn on a linux distro. Get the source kit and follow the readme.html should get you going.
Barry (pysvn maintainer)
As Meteor 0.6.x introduced support of node packages, it is still not clear how to configure dependency to npm package for whole application. Lets say i need to 'require' some node package in the server code. How to make sure this package will be installed after app is deployed somewhere else?
It's easy enough to setup a package.json file in the root of your project.
You can find a cheatsheet here to help you set one up: http://package.json.nodejitsu.com/
Under dependencies you can specify your runtime deps.
They are installed using the $ npm install command or # npm -g install in case you wnat to install them on your system rather than local to the project.