Repository: conda/conda-build

Issue:
conda metapackage 
Hello,

I was wondering why the behaviour of `conda metapackage` has changed. Previously, it outputted helpful information about the location of the recently created package. However, this is the output now:

```
BUILD START: cgat-devel-0.4-py27r3.2.2_6
Package: cgat-devel-0.4-py27r3.2.2_6
source tree in: /sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476780260959/work
number of files: 1
Fixing permissions
Detected hard-coded path in text file bin/cgat
Fixing permissions
```

Moreover, the command also creates temporary folders that are left empty after the package has been built:

```
sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476720264845
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476695297317
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476718035758
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476718312877
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476721899323
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476698228374
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476696744782
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476719724225
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476720123351
/sebastian/conda/conda-build/build-testing/conda-bld/cgat-devel_1476780047095
```

Is this required?

Here is additional info about my environment:

```
$ conda info
Current conda install:

               platform : linux-64
          conda version : 4.2.9
       conda is private : False
      conda-env version : 4.2.9
    conda-build version : 2.0.6
         python version : 2.7.12.final.0
       requests version : 2.11.1
       root environment : /sebastian/conda/conda-build/build-testing  (writable)
    default environment : /sebastian/conda/conda-build/build-testing
       envs directories : /sebastian/conda/conda-build/build-testing/envs
          package cache : /sebastian/conda/conda-build/build-testing/pkgs
           channel URLs : https://conda.anaconda.org/cgat/linux-64/
                          https://conda.anaconda.org/cgat/noarch/
                          https://repo.continuum.io/pkgs/free/linux-64/
                          https://repo.continuum.io/pkgs/free/noarch/
                          https://repo.continuum.io/pkgs/pro/linux-64/
                          https://repo.continuum.io/pkgs/pro/noarch/
                          https://conda.anaconda.org/conda-forge/linux-64/
                          https://conda.anaconda.org/conda-forge/noarch/
                          https://conda.anaconda.org/r/linux-64/
                          https://conda.anaconda.org/r/noarch/
                          https://conda.anaconda.org/bioconda/linux-64/
                          https://conda.anaconda.org/bioconda/noarch/
            config file : /ifs/home/sebastian/.condarc
           offline mode : False
```

Many thanks,
Sebastian



Discussion:
There were a few issues with metapackage in older versions that I fixed, and I also needed to adapt it for the different way that things work in conda-build 2.  The things that you point out are regressions, though, and I'll fix them for the next bugfix release in about 1-2 weeks.  Thanks for the report.


Resolving patch:
diff --git a/conda_build/metapackage.py b/conda_build/metapackage.py
--- a/conda_build/metapackage.py
+++ b/conda_build/metapackage.py
@@ -6,7 +6,7 @@
 def create_metapackage(name, version, entry_points=(), build_string=None, build_number=0,
                        dependencies=(), home=None, license_name=None, summary=None, config=None):
     # local import to avoid circular import, we provid create_metapackage in api
-    from conda_build.build import build
+    from conda_build.api import build
 
     if not config:
         config = Config()


Test patch: