Questions tagged [package]

Package broadly refers to two things: 1) a usable unit/component of built/compiled software, or 2) a partition of the global namespace (Java).

Package may refer to a software component or the action of creating a package. The component could be a portion of a whole system, or the whole system itself, or any level of granularity between. Typical packaging mechanisms include: tar, jar, zip, rpm, war, exe. In this context it may also be used as a verb: "I was packaging my software and...".

Package is also a term from the java world to refer to the mechanism used to partition the global namespace with the intention of making it possible of having two classes with the same name and of creating a logical structure in which classes may be held. In java packages are most commonly represented by directories. Package is also a java keyword used at the start of a class file to indicate the package to which the class belongs. This is important because of 'package' scoped access rules, which allow classes in the same package to access a field/method/class.

Because of the ambiguity here it is best to use other tags to help define the meaning of this one. If you're asking about java packages, please include the Java tag. If you're asking about packaging up your software for deployment/use add other appropriate tags, such as 'Maven', 'Make', 'Ant', etc.

16844 questions
134
votes
5 answers

Why #egg=foo when pip-installing from git repo

When I do a "pip install -e ..." to install from a git repo, I have to specify #egg=somename or pip complains. For example: pip install -e git://github.com/hiidef/oauth2app.git#egg=oauth2app What's the significance of this "egg" string?
Lorin Hochstein
  • 57,372
  • 31
  • 105
  • 141
133
votes
13 answers

How to automatically install Emacs packages by specifying a list of package names?

I am using package to manage my Emacs extensions. In order to synchronize my Emacs settings on different computers, I'd like a way to specify a list of package names in .emacs file and then package could automatically search and install the…
RNA
  • 146,987
  • 15
  • 52
  • 70
132
votes
16 answers

How to change package name of Android Project in Eclipse?

I have an Android project created in Eclipse. I want to modify the package name and application of the project. How do I do that in Eclipse?
Dheepak
  • 1,381
  • 2
  • 11
  • 14
131
votes
5 answers

List all the modules that are part of a python package?

Is there a straightforward way to find all the modules that are part of a python package? I've found this old discussion, which is not really conclusive, but I'd love to have a definite answer before I roll out my own solution based on os.listdir().
static_rtti
  • 53,760
  • 47
  • 136
  • 192
130
votes
6 answers

How to update bower.json with installed packages?

In my project I've installed bower components without save option. Now, I would like update to bower.json? How can I update bower.json with installed packages?
kongaraju
  • 9,344
  • 11
  • 55
  • 78
128
votes
9 answers

The import android.support cannot be resolved

I am trying to run the code provided HERE I downloaded the code from their Github and imported into Android SDK, but it shows error at the lines import android.support.v4.app.FragmentActivity; import android.support.v4.app.NavUtils; in multiple…
user13267
  • 6,871
  • 28
  • 80
  • 138
127
votes
13 answers

What is the most compatible way to install python modules on a Mac?

I'm starting to learn python and loving it. I work on a Mac mainly as well as Linux. I'm finding that on Linux (Ubuntu 9.04 mostly) when I install a python module using apt-get it works fine. I can import it with no trouble. On the Mac, I'm used to…
GloryFish
  • 13,078
  • 16
  • 53
  • 43
126
votes
4 answers

Whats the difference between a module and a library in Python?

I have background in Java and I am new to Python. I want to make sure I understand correctly Python terminology before I go ahead. My understanding of a module is: a script which can be imported by many scripts, to make reading easier. Just like in…
joker
  • 1,995
  • 3
  • 15
  • 17
125
votes
6 answers

Where does SDKMAN install packages?

I used SDKMAN! to install Groovy which went fine. Where is the installed package now? I need the path for it. I am on Ubuntu 14.04.
Med Tumy
  • 1,705
  • 2
  • 11
  • 20
125
votes
3 answers

Python: importing a sub‑package or sub‑module

Having already use flat packages, I was not expecting the issue I encountered with nested packages. Here is… Directory layout dir | +-- test.py | +-- package | +-- __init__.py | +-- subpackage | +--…
Hibou57
  • 6,870
  • 6
  • 52
  • 56
116
votes
3 answers

Do you put Babel and Webpack in devDependencies or Dependencies?

I'm new to npm and don't really understand what should go into dependencies vs. devDependencies. I know that for testing libraries they should go into dev, but how about for things like babel and webpack? Should they be in dev too, because they're…
stackjlei
  • 9,485
  • 18
  • 65
  • 113
115
votes
4 answers

Python: import module from another directory at the same level in project hierarchy

I've seen all sorts of examples and other similar questions, but I can't seem to find an example that exactly matches my scenario. I feel like a total goon asking this because there are so many similar questions, but I just can't seem to get this…
CptSupermrkt
  • 6,844
  • 12
  • 56
  • 87
109
votes
2 answers

How to build executable with name other than Golang package

Is it possible to build (install, go get, etc) an executable with the name foobar if my Golang package name is one of the following: github.com/username/go-foobar github.com/username/foobar-tools and has main.go in the package root?
Petr Razumov
  • 1,952
  • 2
  • 17
  • 32
109
votes
3 answers

Absolute vs. explicit relative import of Python module

I'm wondering about the preferred way to import packages in a Python application. I have a package structure like this: project.app1.models project.app1.views project.app2.models project.app1.views imports project.app1.models and…
Daniel Hepper
  • 28,981
  • 10
  • 72
  • 75
108
votes
3 answers

Java JUnit: The method X is ambiguous for type Y

I had some tests working fine. Then, I moved it to a different package, and am now getting errors. Here is the code: import static org.junit.Assert.*; import java.util.HashSet; import java.util.Map; import java.util.Set; import…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699