Why does pipenv install -e create pyproject.toml file in package directory? - pipenv

tl;dr
Editable pipenv install adds pyproject.toml file to module's source directory. Necessary? Why?
full story
Using another internal project as a git submodule in our project. The submodule has code for a Python package that is normally packaged and installed via pip.
Since the source for proper version is already available, we're toying with setting up our project's pipenv to install an editable version from the tree instead.
pipenv install -e my_project/vendor/other_project/lib/python
Doing this adds a vendor/other_project/lib/python/pyproject.toml file. Why? Is there a way to avoid? If I need to add this to the other project, I can probably make that happen. But I'd like to understand before I do.
Directory Structure:
my_project
vendor
other_project
lib
python
setup.py
module_i_want_to_editable_install
helper.py

Related

install MongoDB C++ Driver problem in ubuntu 16.04

I want to install MongoDB C++ Driver, so first is mongocxx
I follow this installation:
http://mongocxx.org/mongocxx-v3/installation/
but I can not pass step 4
when I run this in mongo-cxx-driver/build
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
it shows
-- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
CMake Error at src/mongocxx/CMakeLists.txt:37 (find_package):
By not providing "Findlibmongoc-1.0.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"libmongoc-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libmongoc-1.0"
(requested version 1.13.0) with any of the following names:
[![enter image description here][1]][1]
libmongoc-1.0Config.cmake
libmongoc-1.0-config.cmake
Add the installation prefix of "libmongoc-1.0" to CMAKE_PREFIX_PATH or set
"libmongoc-1.0_DIR" to a directory containing one of the above files. If
"libmongoc-1.0" provides a separate development package or SDK, be sure it
has been installed.
second question,
Step 2: Choose a C++17 polyfill how can I set MNMLSTC/core?
does anyone can help me,I already trap here for a long time ?
my env:
mongo-c-driver 1.15.1
libmongoc-1.0
mongocxx-3.4.x
Cmake is complaining about not finding a package configuration file (xxx.cmake), probably because you didn't build libmongoc/libbson.
I've tried to reproduce your issue and hit the same problem when I only installed them (apt-get install), so my suggestion is that you get the sources and build them as described at: http://mongoc.org/libmongoc/current/installing.html
Here's the list of commands (with the latest version of mongo-c-driver=1.15.1) which I just tried and worked fine:
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.15.1/mongo-c-driver-1.15.1.tar.gz
tar xzf mongo-c-driver-1.15.1.tar.gz
cd mongo-c-driver-1.15.1
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
At this point you can go back into mongocxx/build and run again the command you were stuck at:
cd ../../mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..

Is the Bower command missing from project?

I have a deploy.cmd script that I built using these steps. It is being used to package a project up for deployment to Azure. In it there is this line:
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd .\node_modules\.bin\bower install
IF !ERRORLEVEL! NEQ 0 goto error
popd
When I test the script locally, it fails because there is no bower command in the .bin directory. I have installed bower using -g and have used it to install project packages. But I can't figure out how it's supposed to make it into this folder.
It'll make it to that folder if you run npm install bower without -g. -g is meant to install tools globally to be available anywhere on your commandline, while not adding -g will install it locally in the node_modules folder

DEB Package add preinst after compiled

My buddy wrote a custom patch about a year ago for my iPad that allows me to use certain apps despite being jail broken. Unfortunately it no longer works but I figured out that it can be fixed by creating a few directories manually before installing the deb package.
Is it possible to bundle this preinst code with my existing deb file so that the directories are created automatically before the install fails? Please note that I do not have the original source code of the deb package.
Sure. Extract the contents of the Debian package (using dpkg -x), then create a file named preinst in the DEBIAN directory. This has to be an executable (or a shell script) with proper permissions; usualluy 0755 is good enough. The contents may be as follows:
#!/bin/bash
mkdir -p /path/to/folder
Then re-create the package using dpkg-deb --build, and it should be fine now.

OpenCV installation help?

I am on Mac OS X Snow Leopard, and I am trying to get OpenCV to work with CodeBlocks. I downloaded the source files for OpenCV 2.3, and then downloaded the latest version of Cmake. The direct source file contains a folder "include" which has two folders in it labeled OpenCV and OpenCV 2. However after I use Cmake on the source files, the two "OpenCV" and OpenCV 2" folders are gone. Anyone know why this is happening and how to fix it? Instead of the folders all I have now is a CmakeFiles Folder, MakeFile and cmake_install.cmake
Thank You
After you download the source files, go into the opencv folder that's inside the folder you created and execute these commands:
sudo cmake -G "Unix Makefiles" .
sudo make -j8
sudo make install
Don't try to do this from the include folder. That's one level too deep. You want to do it from the folder that contains the include folder.
Terminal is in Applications/Utilities. That's how you get to the Unix command line. To get into your opencv folder, run Terminal and type "cd ". (That's cd followed by a space.) Then drag your opencv folder from a Finder window onto the Terminal window. This will append the folder name to the command line. Then press Return and you'll be in that folder. Then you can enter the commands above.
If you want to use ccmake instead of cmake, just replace "cmake" with "ccmake" in the first command.

CMake can't find FFMPEG in custom install path

I am compiling a dependency for a project on Ubuntu 10.10, and instead of having it install to /usr/local by default, I am instead installing it to /tmp/stage/usr/local. How do I go about informing CMake of the location of this custom installed dependency when I call it to generate the build files for said project.
I am running CMake 2.8.1, and I have tried to set CMAKE_PREFIX_PATH on the cmake command line, like so
cmake -D CMAKE_PREFIX_PATH=/tmp/stage/usr/local
but this doesn't seem to make a difference - the project doesn't seem to detect the dependency.
Also, if it matters, the project in question is OpenCV 2.2, and the dependency in question is FFMPEG...
I figured out how to fix my problem, and trying to point CMake at the appropriate install location isn't the issue.
Apparently, CMake is unable to find the pkg-config files for FFMPEG (i.e. libavcodec.pc, libavdevice.pc, etc.) that tell it where the FFMPEG headers and libraries are located. In a typical install scenario, these files would be located at /usr/lib/pkgconfig. However because of the custom install location, they are instead located at /tmp/stage/usr/local/lib/pkgconfig.
So that CMake could find these files, I had to add the following environment variable:
export PKG_CONFIG_PATH=/tmp/stage/usr/local/lib/pkgconfig
After which point, OpenCV built against FFMPEG as expected.

Resources