dependencies

list python package dependencies without loading them?

此生再无相见时 提交于 2019-12-17 06:38:09
问题 Say that python package A requires B, C and D; is there a way to list A → B C D without loading them ? Requires in the metadata ( yolk -M A ) are often incomplete, grr. One can download A.tar / A.egg, then look through A/setup.py, but some of those are pretty gory. (I'd have thought that getting at least first-level dependencies could be mechanized; even a 98 % solution would be better than avalanching downloads.) A related question: pip-upgrade-package-without-upgrading-dependencies 回答1:

Maven : Should I keep or remove declared dependencies that are also transitives dependencies?

十年热恋 提交于 2019-12-17 06:37:18
问题 Do you think it is a good practice to remove every transitive dependencies that can be found in a maven pom? Example: My project depends on A and B. B is also a transitive dependency of A. Should I keep B in my pom or remove it ? What is the best: having all known jars, even transitive one, declared on the pom or keeping only the top level jars ? This is a little bit subjective, but I am trying to clean some huge poms (parent and children) with a lot of transitive dependencies. I want to keep

Gradle - getting the latest release version of a dependency

不想你离开。 提交于 2019-12-17 04:43:06
问题 What would be the easiest way to tell Gradle the following: Retrieve 'junit' dependency and take its latest 'release' version. Managing Maven and Ivy repositories is sort of new to me. I tried the following steps and they result in Could not resolve dependency ... error: Write compile "junit:junit:latest.release" with repositories set to only mavenCentral() (however, it works if I say "junit:junit:4.10"). Write compile "junit:junit:latest.release" with repository set the following way: ivy {

is it possible to disable javac's inlining of static final variables?

99封情书 提交于 2019-12-17 04:27:58
问题 The Java static compiler (javac) inlines some static final variables and brings the values directly to the constant pool. Consider the following example. Class A defines some constants (public static final variables): public class A { public static final int INT_VALUE = 1000; public static final String STRING_VALUE = "foo"; } Class B uses these constants: public class B { public static void main(String[] args) { int i = A.INT_VALUE; System.out.println(i); String s = A.STRING_VALUE; System.out

How to avoid copying dependencies with Ivy

。_饼干妹妹 提交于 2019-12-17 04:08:31
问题 I'm looking into using Ivy to manage dependencies but wow - that thing really likes to make multiple copies of jars! It spreads like the ivy in my back yard and is just as undesirable! Is it possible to have Ivy simply define a classpath (for a specified profile) that references the resolved dependencies so my javac can reference them directly in the ivy repository (or cache?). I've read the reference docs buy only see the option to set up symbolic links to the repository cache. I guess this

How to avoid copying dependencies with Ivy

删除回忆录丶 提交于 2019-12-17 04:08:23
问题 I'm looking into using Ivy to manage dependencies but wow - that thing really likes to make multiple copies of jars! It spreads like the ivy in my back yard and is just as undesirable! Is it possible to have Ivy simply define a classpath (for a specified profile) that references the resolved dependencies so my javac can reference them directly in the ivy repository (or cache?). I've read the reference docs buy only see the option to set up symbolic links to the repository cache. I guess this

HintPath vs ReferencePath in Visual Studio

百般思念 提交于 2019-12-17 03:23:00
问题 What exactly is the difference between the HintPath in a .csproj file and the ReferencePath in a .csproj.user file? We're trying to commit to a convention where dependency DLLs are in a "releases" svn repo and all projects point to a particular release. Since different developers have different folder structures, relative references won't work, so we came up with a scheme to use an environment variable pointing to the particular developer's releases folder to create an absolute reference. So

Dependency Walker: missing dlls

泄露秘密 提交于 2019-12-17 02:39:09
问题 I have been trying to resolve .dll dependencies for the executable file with Dependency Walker . Currently, I am getting missing .dlls in the following form: API-MS-WIN -XXX EXT-MS-WIN -XXX For example: API-MS-WIN-APPMODEL-IDENTITY-L1-2-0.DLL API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-0.DLL API-MS-WIN-BASE-UTIL-L1-1-0.DLL API-MS-WIN-CORE-APIQUERY-L1-1-0.DLL EXT-MS-WIN-RTCORE-NTUSER-SYSCOLORS-L1-1-0.DLL Does anybody have any ideas on how to resolve these? Any help will be greatly appreciated!

npm install private github repositories by dependency in package.json

风流意气都作罢 提交于 2019-12-17 02:17:09
问题 I'm trying to install github private repository by npm that includes other private github repositories as dependency. Have tried a lot of ways and posts but none is working. Here is what i'm doing : npm install git+https://github.com/myusername/mygitrepository.git in package.json is like : "dependencies": { "repository1name": "git+https://github.com/myusername/repository1.git", "repository2name": "git+https://github.com/myusername/repository2.git" } What is the the right way to do it? 回答1:

Multi-project test dependencies with gradle

眉间皱痕 提交于 2019-12-17 01:39:49
问题 I have a multi-project configuration and I want to use gradle. My projects are like this: Project A -> src/main/java -> src/test/java Project B -> src/main/java (depends on src/main/java on Project A ) -> src/test/java (depends on src/test/java on Project A ) My Project B build.gradle file is like this: apply plugin: 'java' dependencies { compile project(':ProjectA') } The task compileJava work great but the compileTestJava does not compile the test file from Project A . 回答1: Deprecated In