76
голосов
7ответов
69080 просмотров

Circular import dependency in Python

Let's say I have the following directory structure: a\ __init__.py b\ __init__.py c\ __init__.py c_file.py d\ __init__.py d_file.py In the a package's __init__.py, the c package is imported. But c_file.py imports a...

19
голосов
5ответов
10052 просмотров

Java Classloader - how to reference different versions of a jar

This is a common problem. I'm using 2 libraries A.jar and B.jar and these depend on different versions of the same jar. Let's say that at runtime I need THIS.x.x.x.jar MY.jar -> A.jar -> THIS.1.0.0.jar -> B.jar -> C.jar -> THIS.5.0.0.jar I can compile the specific j...

1
голосов
1ответов
2252 просмотров

Resolving missing dependency libexif.so.9 while trying to Yum install Mono on CentOS 5.3.3

I'm trying to install Mono on CentOS 5.3.3 through Yum. According to the instructions I found elsewhere I grabbed a copy of mono.repo from the Mono site and placed it in the /etc/yum.repos.d directory. The file looks like this: [mono] name=Mono for rhel-4-i386 (stable) baseurl=http://ftp.nove...

2
голосов
3ответов
2905 просмотров

Class dependency tool

I'm looking for a (preferably open source) tool that, given a large body of C/C++ code, will generate a visual or maybe XML graph of dependencies between classes (C++) and/or files (C). The idea would be that, if you had to convert the code to another language, you'd like to be able to get the l...

0
голосов
3ответов
1873 просмотров

Cache and SqlCacheDependency (ASP.NET MVC)

We need to return subset of records and for that we use the following command: using (SqlCommand command = new SqlCommand( "SELECT ID, Name, Flag, IsDefault FROM (SELECT ROW_NUMBER() OVER (ORDER BY @OrderBy DESC) as Row, ID, Name, Flag, IsDefault FROM dbo.Languages) results W...

0
голосов
1ответов
722 просмотров

per-file dependencies in ant

I have a set of input files, each of which is processed to generate an output file. In one case it's hibernate xml files as input, and java files as output, but that isn't the only case I have to deal with. In make, I would have set up a rule to tell it how to generate a .java file from an .hbm...

2
голосов
6ответов
3353 просмотров

require library returns 'missing file' message

I have a small application which I created using jeweler. The jeweler generates a lib/ directory, where I suppose to write my code. This gem I'm creating depends on the httparty gem, so, in my Rakefile I put Jeweler::Tasks.new do |gem| gem.add_dependency('httparty', '>= 0.4.5') .....

2
голосов
2ответов
893 просмотров

Why doesn't private assembly discovery use the Fully Qualified Assembly Name to match, but rather the filename?

Our application dynamically loads a set of private assemblies that each reside under their own sub-directory. They each have their own dependencies which are also in that same sub-directory. Each assembly is strongly named and the dependencies are the same library, but different versions. MyApp ...

0
голосов
3ответов
930 просмотров

Giving Flex MXML views their dependencies

I'm used to building applications using pure AS3. I always pass dependencies into the constructor of classes I make, but this method seems to not work out well for Flex MXML views. It seems like I should define setters on the MXML class, which map to attributes in the tag/class instantiation. B...

2
голосов
3ответов
214 просмотров

How to automate a build of a Java class and all the classes it depends on?

I guess this is kind of a follow-on to question 1522329. That question talked about getting a list of all classes used at runtime via the java -verbose:class option. What I'm interested in is automating the build of a JAR file which contains my class(es), and all other classes they rely on. Typ...

6
голосов
3ответов
3001 просмотров

linux/gcc: ldd functionality from inside a C/C++ program

Is there a simple and efficient way to know that a given dynamically linked ELF is missing a required .so for it to run, all from the inside of a C/C++ program? I need a program with somewhat similar functionality as ldd, without trying to execute the ELF to find out the (met/unmet) dependencies...

1
голосов
2ответов
293 просмотров

Make dependency generation using shell and %?

I have a bunch of directories. I want to build an object for each directory. Suppose OBJS contains "build/dir1 build/dir2 build/dir3", and the pattern I'm matching is build/%: % <do something here> I'd like to add, for each object, dependencies for every file within that directory (r...

7
голосов
2ответов
3936 просмотров

How to avoid installing unnecessary dependencies with MacPorts?

I've tried to get postgresql 8.4 via MacPorts (on Snow Leopard) but it seems that the dependencies are endless - including getting older version of stuff that is already available in Snow Leopard, kitchen-sink and who knows if eventually I end up with windows 7 ... Is there a way to get only tho...

2
голосов
2ответов
13059 просмотров

Any example of Dependency Property in ViewModel?

Can someone give example of Dependency Property in ViewModel in WPF passed as datacontext to view. Will this require inheriting from DependencyObject? Lets say I want ListBox SelectedItem bound to a Dependency Property CurrentItem in ViewModel. I have it working from window object but same thi...

63
голосов
17ответов
55989 просмотров

Find a jar file given the class name?

This must be a very basic question for Java developers, but what is the best way to find the appropriate jar file given a class name? For example, given "com.ibm.websphere.security.auth.WSSubject", how do you track down the appropriate jar file? ("google" is not the answer I'm looking for!) The...

3
голосов
1ответов
5370 просмотров

Getting Maven exec:java plugin to use project module dependencies

I'm using Maven's exec:java to run jline for one of my projects (current POM attached below). The project used to be a single component, so all dependencies were in the same POM as the exec:java plugin definition. This worked great and all the dependencies were picked up and put on the classpat...

3
голосов
5ответов
422 просмотров

How do I install Perl script dependencies?

I have several scripts that I supply to users as tools for their engineering projects. These scripts contain a lot of duplicated code. I want to extract this code and maintain it in a set of modules. However, in order for this to work, the users would have to install these modules. I don't want t...

2
голосов
1ответов
448 просмотров

Use Ivy to manage directories instead of jar files?

Is it possible to use Ivy, or some other dependency-management tool, if your dependencies are directories instead of files? I'm creating a PHP web site, so my shared "libraries" aren't jar files or any other archive format. I'm aware of .phar files in PHP 5.3, but I really would prefer these to ...

4
голосов
2ответов
2070 просмотров

Collect Windows service dependencies

I've recently written a Windows service and installed it on the production system. After some applied Windows updates, the server had to be rebooted and my service did not load correctly, although it was set to start automatically. The service started fine manually after we were noticed of the fa...

0
голосов
2ответов
387 просмотров

Tint2 Compilation

I'm on a network where I don't have root access, so everything I install is under a prefix ~/bin (actually referenced by its full path). So I have openbox working fine, which is what I'm using to send this from. Imlib2 I do ./configure --prefix=~/bin; make; make install. Then I run from the tint2...

0
голосов
4ответов
933 просмотров

minimal build dependency tree

I'm currently using an IDE which builds c++ projects for several platforms (win32, windows mobile, symbian etc). This IDE doesn't keep a build dependency list and simply rebuilds the entire project every time. This wastes a lot of our time, which made us consider implementing a smarter build proc...

4
голосов
5ответов
4043 просмотров

Xcode dependencies across different build directories?

I am trying to set up Xcode for a project which contains multiple executables and static libraries. I have created multiple targets and set up the linking and dependencies, and initially everything works great. The catch... This is an existing project which already has Visual Studio and Makefile...

30
голосов
8ответов
4349 просмотров

Large Java System Dependency Management

We have a large (>500,000 LOC) Java system that depends on 40-50 OSS packages. The system is built with Ant, and dependency management is handled manually at present. I'm investigating Ivy and/or Maven to automate dependencies. We looked at Maven as a build automation system last year and r...

6
голосов
2ответов
4691 просмотров

Creating/Accessing Maven repository in SVN through NetBeans 6.7 *Revised*

EDIT: Ok... so I've gathered that SVN shouldn't really be used for this... which makes sense, I suppose (why version individual files when the version should be a separate jar?). So we should use an internal server to host a repository management tool like Nexus (etc), and access that over http ...

27
голосов
2ответов
9626 просмотров

How to make MSBuild to automatically copy all indirect references to output (bin) folder

Subj. "Automatically" is essential here. References from GAC must not be copied. I've seen e.g. VS2008.NET: Getting a referenced project’s dependencies to copy to main project’s bin folder, and this isn't interesting for me. I'd like all the dependencies get copied automatically.

2
голосов
1ответов
113 просмотров

both project dependencies and link-against-binary available in same VS2008 solution?

In Visual Studio 2008, I have a c# app, that depends on multiple other projects. I want to deploy to customers: 1) binaries only - I use an installer project for that 2) binaries only, but the top level app as source code (for customer's integration purposes) For 1) I need the app project to hav...

11
голосов
3ответов
2636 просмотров

Dealing with optional dependencies (C#)

We have an app which optionally integrates with TFS, however as the integration is optional I obviously don't want to have all machine need the TFS assemblies as a requirement. What should I do? Is it ok for me to reference the TFS libraries in my main assemblies and just make sure that I only...

1
голосов
2ответов
259 просмотров

Is there a tool for .Net that creates a programme / dependency flow chart from IL / source?

I am trying to see how a bunch of .Net functions are used throughout a very large project and I would like to visually chart them so I can see the flow from / to each function. There are only a few functions I want to track so it is not an exhaustive view. Thanks Ryan

2
голосов
3ответов
140 просмотров

C: Inclusions within Headers

If I have the following: /* * example.h */ #ifndef EXAMPLE #define EXAMPLE #include <stdio.h> extern int parse_string(FILE *, char const*, const unsigned int); #endif Will this mean that code that uses ... #include example.h ... won't have to ... #include example.h's ... dependenc...

24
голосов
16ответов
6921 просмотров

How to stop Visual Studio adding assemblies to my web.config?

Every time i build, or publish, a web-site, Visual Studio attempts to check out the web.config file so that it can add numerous assemblies that are not required. In other words: web.config before: <configuration> <system.web> <compilation> <assemblies>...